Dates and times in timezones


#1

Originally published at: https://purelyfunctional.tv/clj-time/dates-and-times-in-timezones/
How to represent date-times that happen in a time zone.


#2

What’s the best way to generate a list of all the possible timezones?


#3

Hi @Conaw,

Unfortunately, like most questions relating to time, that is hard. Are you asking for this list in a form that is easy to use?

http://joda-time.sourceforge.net/timezones.html

Try this: https://clj-time.github.io/clj-time/doc/clj-time.core.html#var-available-ids

(time/available-ids)

OR would you like all of the unique offsets?

Eric


#4

That might work – since the goal is to create a dropdown that shows all options and their current offset (reflecting whatever daylight savings time happen to be in effect)