[PLUG] Question on mktime() results

logical american website.reader3 at gmail.com
Wed Jan 27 00:52:44 UTC 2016


> galens at lion:~$ make mktime_test
> cc     mktime_test.c   -o mktime_test
> galens at lion:~$ ./mktime_test
> first struct tm object dump: 1 7 12 18 10 -17 0 321 0 -28378 LMT
> second struct tm object dump: 2 7 12 18 10 -17 0 321 0 -28800 PST
> First time tick: -2717640001 Second time tick: -2717639578 Difference: -423 secs.  Should be -1 seconds instead.
> Is this discrepancy due to the 7 min 2 sec difference between PST and Local Mean Time (Solar Time) ?
>
>
> galen
Thanks for running this check.




More information about the PLUG mailing list