C#上位机转换成Bt下发时间

long time=(now.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
//时间戳
bt[x++] = (byte)(time >> 24);
bt[x++] = (byte)((time >> 16) & 0xFF);
bt[x++] = (byte)((time >> 8) & 0xFF);
bt[x++] = (byte)(time & 0xFF);

posted @ 2022-08-17 13:45  搬砖的L先生  阅读(32)  评论(0编辑  收藏  举报