开发者

Check if DST is set for specific date and time

i am trying to check, with plain c, whether the DST is set on a specific date and time. i have tested gmtime and localtime, but these functions only take care of the current system DST.

Thanks f开发者_JAVA技巧or your advice. thomas


Try to use zic and zdump. Use man for more information.

When I needed to know DST without holding the 6MB of compiled data I modified zic's code to create a samller table with the required data.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜