Hacker News new | ask | show | jobs
by ishu3101 3264 days ago
So how do you know when a country toggles DST? Where are you getting that information from?

Do you have plans to have an api for this so that you could connect this with IFTTT or Zapier? This would open up many possibilities such as receiving a notification or an sms instead of an email when a country toggles DST.

1 comments

I get this information from the IANA timezone database shipped with pytz. With it you can easily detect when a TZ changes its time because of toggling DST on or off.

I was thinking about an API as well, I will probably add RSS, webhooks and a simple REST API.

The thing is, I'm not sure the API will be used much. Most systems already have access to the same TZ database I use, so why make an HTTP call to retrieve this information?