>What is the value of localtime() and gmtime() in your
>system?
localtime(0):
tm_sec 0
tm_min 0
tm_hour 3
tm_mday 1
tm_mon 0
tm_year 70
tm_wday 4
tm_yday 0
tm_stdst 0
gmtime(0):
tm_sec 0
tm_min 0
tm_hour 0
tm_mday 1
tm_mon 0
tm_year 70
tm_wday 4
tm_yday 0
tm_stdst 0
Looks like localtime returns 3 hours instead of 4.
And datetimes for current time_t:
localtime(NOW):
tm_sec 46
tm_min 15
tm_hour 9
tm_mday 3
tm_mon 7
tm_year 112
tm_wday 5
tm_yday 215
tm_stdst 0
gmtime(NOW):
tm_sec 46
tm_min 15
tm_hour 5
tm_mday 3
tm_mon 7
tm_year 112
tm_wday 5
tm_yday 215
tm_stdst 0
Difference between gmtime and localtime is 4 hours. Bug? Feature?
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ecls-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecls-list