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

Added extra FixedTimeZones #9

Merged
merged 6 commits into from
Oct 7, 2015
Merged

Added extra FixedTimeZones #9

merged 6 commits into from
Oct 7, 2015

Conversation

Michael-Klassen
Copy link
Contributor

Add support for some common fixed time zones

@omus omus changed the title Fixed Added extra FixedTimeZones Oct 6, 2015
@omus
Copy link
Member

omus commented Oct 7, 2015

Please add some coverage for fixed.jl. Currently the file has no testcases that use the fixed_timezones function.

@omus omus self-assigned this Oct 7, 2015
All of the fixed timezones that were added can be found in the file
"etcetera" from the IANA website. Even though we could support these
timezones I think we shouldn't as they are deemed historical along with
"backward".

Additionally, the "Etc/GMT(+|-)\d+" can be confusing as their labels
("GMT+1") have the opposite offset (-3600 seconds).

See ftp://ftp.iana.org/tz/data/etcetera for details.
@omus
Copy link
Member

omus commented Oct 7, 2015

I've decided that the "Etc/..." timezones are historical and shouldn't be used. For those who want to use something like them try FixedTimeZone("UTC-2", -7200). Making the FixedTimeZone yourself should be much safer as the "Etc/GMT±X" timezones may be negated depending on your view.

I've added some notes into build.jl which acknowledges the existence of the "etcetera" file. The only new TimeZones added by this PR are: "UTC" and "GMT".

omus added a commit that referenced this pull request Oct 7, 2015
Added extra FixedTimeZones
@omus omus merged commit b5dacd8 into JuliaTime:master Oct 7, 2015
@omus omus deleted the fixed branch October 7, 2015 20:57
omus pushed a commit to invenia/TimeZones.jl that referenced this pull request Aug 15, 2018
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

Successfully merging this pull request may close these issues.

2 participants