The function mktime takes a struct tm as argument.One of the members of struct tm is tm_isdst. You 开发者_如何学运维can set this to 1 for wintertime, 0 for summertime, or -1 if you don\'t know.
I\'m using the America/New York timezone.In the Fall we \"fall back\" an hour -- effectively \"gaining\" one hour at 2am.At the transition point the following happens:
Okay this may be a simple question but I have yet to come with a working solution, so to anyone who can help thanks in advance.