* What value of "tz" was in effect back then at "time" in the * local timezone? */
| 112 | * local timezone? |
| 113 | */ |
| 114 | static int local_tzoffset(timestamp_t time) |
| 115 | { |
| 116 | struct tm tm; |
| 117 | |
| 118 | if (date_overflows(time)) |
| 119 | die("Timestamp too large for this system: %"PRItime, time); |
| 120 | |
| 121 | return local_time_tzoffset((time_t)time, &tm); |
| 122 | } |
| 123 | |
| 124 | static void get_time(struct timeval *now) |
| 125 | { |
no test coverage detected