user194606
user194606

Reputation:

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 for your advice. thomas

Upvotes: 1

Views: 629

Answers (1)

eyalm
eyalm

Reputation: 3366

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.

Upvotes: 2

Related Questions