开发者

Check if DST is set for specific date and time

开发者 https://www.devze.com 2022-12-09 08:06 出处:网络
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.

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

精彩评论

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