Function (Path Standard C Header / time.h)

localtime

struct tm* localtime(time_t *timer);

Fill the tm structure with the value of timer. The value of timer is decomposed into a tm structure and expressed in the local time zone


Parameters

  time_t *timer

函数 (属于 标准C头文件 / time.h)

localtime

struct tm* localtime(time_t *timer);

使用 timer 的值来填充 tm 结构。timer 的值被分解为 tm 结构,并用本地时区表示


参数

  time_t *timer