gmtime : 将时间转换为 UTC 传统格式
#include <time.h>struct tm *gmtime(const time_t *clock);struct tm *gmtime_r(const time_t *clock, struct tm *res);```### 描述
gmtime 假定 clock 处的时间表示本地时间。gmtime 将其转换为 UTC(协调世界时,在某些国家也称为 GMT,格林威治标准时间),然后将表示形式从算术表示形式转换为由 struct tm 定义的传统表示形式。
gmtime 在静态存储中构造传统时间表示;每次调用 gmtime 或 localtime 都会覆盖先前对其中任一函数调用所生成的信息。### 返回值
指向传统时间表示形式(struct tm)的指针。
---
**权威来源**: BUSMASTER DITA help source `gmtime.dita`, compiled into `BUSMASTER.CHM` with the application.