Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is sign of abbreviated timezones correct? #6

Open
jetmonk opened this issue Nov 1, 2019 · 0 comments
Open

Is sign of abbreviated timezones correct? #6

jetmonk opened this issue Nov 1, 2019 · 0 comments

Comments

@jetmonk
Copy link

jetmonk commented Nov 1, 2019

Consider

(cl-date-time-parser:parse-date-time "5:42:00 July 4, 1976 GMT") ==> 2414295720

(cl-date-time-parser:parse-date-time "5:42:00 July 4, 1976 EST") ==> 2414277720

GMT time is later than EST (Eastern Standard Time)

It seems to that 5:42 in EST (Eastern Standard Time) should be later than 5:42 in GMT (5:42 happens in London first, then on East coast of US), so that the EST value should be larger for GMT, in absolute UT clock ticks.

Now note the +05 in:

(cl-date-time-parser:parse-date-time "1976-07-04T05:42:00+05") ==> 2414277720

which is same as EST - however, EST is defined as UTC-05:00, not UTC+05:00

Thus it appears to me that abbreviated time zones are reversed in sign.

My sincere apologies if I got something very wrong!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant