假如给出的UTC时间是1563027941,对应的时间是2019-07-13 22:25:41
计算出utc所在天所走过的秒数:utc时间对86400求余,则
1563027941 % 86400 = 51941;
那么给定的utc时间所在的天的0点0分0秒的时间是,给定的UTC值减去所走过的秒数,即指定的utc时间所在的0点0分0秒的utc时间是: 1563027941 - 51941 = 1,562,976,000
给定的utc时间所在的天的23点59分59秒的时间是,将所得的起始时间加上(86400-1)1,562,976,000 + 86400-1 = 1,563,062,399
typedef struct
{
unsigned int st;
unsigned int end;
}UTC_INFO;
void calcUtc(UTC_INFO *p,unsigned int utc)
{
unsigned int temp;
temp = utc % 86400;
p->st = utc-temp;
p->end = p->st +(86400-1);
}