|
|
@ -30,6 +30,17 @@ typedef struct _timestamp { |
|
|
|
typedef struct tm timestamp; |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
// timegm_with_gmtoff() - convert the broken-out time into time_t, and respect tm_gmtoff |
|
|
|
// |
|
|
|
// parameters: |
|
|
|
// timeptr(inout) broken-out time; members will be "normalized" by this function. |
|
|
|
// |
|
|
|
// return value: |
|
|
|
// time_t that holds the usual "seconds since epoch" |
|
|
|
DYNAMIC_API time_t timegm_with_gmtoff(timestamp* ts); |
|
|
|
|
|
|
|
|
|
|
|
// new_timestamp() - allocate a new timestamp |
|
|
|
// |
|
|
|
// parameters: |
|
|
|