目录
二、gps 周、周内秒转gps时间戳(单位秒)- 代码如下:
在RTKlib里面有个 time2epoch 方法,按其注释就是convert gtime_t struct to calendar day/time。
一、GPS秒转北京时间(年月日时分秒)- 代码如下:
void gpstime2bjtime(double gps_time, double *ep)
{
// 分离整数和小数
int gps_t;
double gps_sec;
gps_t = (int)gps_time;
gps_sec