* The "tz" thing is passed in as this strange "decimal parse of tz" * thing, which means that tz -0100 is passed in as the integer -100, * even though it means "sixty minutes off" */
| 71 | * even though it means "sixty minutes off" |
| 72 | */ |
| 73 | static struct tm *time_to_tm(timestamp_t time, int tz, struct tm *tm) |
| 74 | { |
| 75 | time_t t = gm_time_t(time, tz); |
| 76 | return gmtime_r(&t, tm); |
| 77 | } |
| 78 | |
| 79 | static struct tm *time_to_tm_local(timestamp_t time, struct tm *tm) |
| 80 | { |