# | Line 50 | Line 50 | void Microseconds(uint32 &hi, uint32 &lo | |
---|---|---|
50 | * Return local date/time in Mac format (seconds since 1.1.1904) | |
51 | */ | |
52 | ||
53 | – | const uint32 TIME_OFFSET = 0x7c25b080; // Offset Mac->Unix time in seconds |
54 | – | |
53 | uint32 TimerDateTime(void) | |
54 | { | |
55 | time_t utc_now = time(NULL); | |
56 | #if defined(__linux__) || defined(__SVR4) | |
57 | long tz = timezone; | |
58 | < | time_t local_now = uct_now - tz; |
58 | > | time_t local_now = utc_now - tz; |
59 | if (daylight) | |
60 | local_now += 3600; | |
61 | #elif defined(__FreeBSD__) || defined(__NetBSD__) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |