mbgtools-lx
4.2.8
|
Go to the source code of this file.
Macros | |
#define | _PCPSMKTM |
Functions | |
time_t | pcps_mktime (const PCPS_TIME *tp) |
Compute a linear time_t value from PCPS_TIME. More... | |
#define _PCPSMKTM |
Definition at line 28 of file pcpsmktm.c.
time_t pcps_mktime | ( | const PCPS_TIME * | tp | ) |
Compute a linear time_t value from PCPS_TIME.
This function works like the standard mktime() function but does not account for a timezone setting configured for the standard C library. Instead, since PCPS_TIME contains local time with specified UTC offset the UTC offset is removed to yield UTC time.
[in] | tp | A timestamp in PCPS_TIME format |
Definition at line 49 of file pcpsmktm.c.
References PCPS_TIME::hour, mbg_mktime(), PCPS_TIME::mday, PCPS_TIME::min, PCPS_TIME::month, PCPS_TIME::offs_utc, PCPS_TIME::sec, and PCPS_TIME::year.
Referenced by set_system_time_from_pcps_time().