# | Line 44 | Line 44 | void Microseconds(uint32 &hi, uint32 &lo | |
---|---|---|
44 | * Return local date/time in Mac format (seconds since 1.1.1904) | |
45 | */ | |
46 | ||
47 | – | const uint32 TIME_OFFSET = 0x7c25b080; // Offset Mac->BeOS time in seconds |
48 | – | |
47 | uint32 TimerDateTime(void) | |
48 | { | |
49 | < | time_t uct_now = time(NULL); |
49 | > | time_t utc_now = time(NULL); |
50 | long tz = timezone; | |
51 | < | time_t local_now = uct_now - tz; |
51 | > | time_t local_now = utc_now - tz; |
52 | if (daylight) | |
53 | local_now += 3600; | |
54 | return (uint32)local_now + TIME_OFFSET; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |