Score:0

How can I acquire the timezone information about when a timezone change occurs

in flag

I need to know in advance when a timezone change will occur. I need to know when UK's GMT turns into BST and vice versa.

I don't want to find out what my current timezone is and I don't want to change it.

There must be a way to query the timezone database stored on linux to find out this information.

Thanks Mark

cn flag
May I ask why you need this info? Just in case there's another way to solve your problem!
in flag
Yes, we are working with AWS and their scheduler, EventBridge, doesn't handle daylight savings time in their Fargate containers. We therefore have decided to write our own scheduler to start and stop services. Therefore, we need to know when DST will kick in.
cn flag
Is there a reason you can't schedule things in UTC?
in flag
Yes, our systems operate on localtime so when DST kicks in they;ll be an our out from starting and stopping
cn flag
Ah right. That can get very complicated and messy, but I'm sure you'll find an answer!
Score:1
st flag

Install tzdata package.

e.g. if you're using Ubuntu:

sudo apt install tzdata

Having your timezone data updated you can get this data in advance using zdump command:

zdump -v America/New_York
in flag
ok, how am I supposed to use tzdata once I've installed it. running "man tzdata" says no manual entry and there isn't a tzdata executable I can run
st flag
@ScaryAardvark, I don't think need to do anything else. Once it's installed, timezone data is updated. tzdata knows the day daylight saving time beginz and finishes
in flag
as I explained, I need to query tz information in advance of the date actually happening. trurns out that zdump can do this.
st flag
Right. zdump does the trick. I updated the post in order to have a more complete answer
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.