-
Notifications
You must be signed in to change notification settings - Fork 27
Journal
My secret developers journal, where I scribble down all my deepest, darkest Timezone secrets.
Using date as a structure is potentially very confusing. It might be better to create a pseudo date structure, but that is a lot of extra code.
You would have to make a section about the cheat. If you do make a section about the cheat.
Or you could break down and create a date replacment that has API parity. This would be an object containing two date objects, one with UTC time and one with the offset time, but as UTC, of course, used solely for the fields.
This undoes the decision to not create a special type, but how are you supposed to use the severely limited Date type?
Dearest diary,
Today I learned all about wall clock time. Wall clock time is the opposite of standard time, and it means the time according to the clock on the wall, with daylight savings applied of applicable. "standard time" is the local time without daylight savings time.
There will be a "standard" field in the JSON timzeone file.