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

How does one do time+timezone conversions? #53

Closed
drf5n opened this issue Nov 29, 2017 · 1 comment
Closed

How does one do time+timezone conversions? #53

drf5n opened this issue Nov 29, 2017 · 1 comment

Comments

@drf5n
Copy link

drf5n commented Nov 29, 2017

udunits2 seems to parse and understand timezones:

$ udunits2 -H 'second since 1970-01-01 00:00:00 -1:00' -W 'second since 1970-01-01 00:00:00 -0'
    1 second since 1970-01-01 00:00:00 -1:00 = 3601 (second since 1970-01-01 00:00:00 -0)
    x/(second since 1970-01-01 00:00:00 -0) = (x/(second since 1970-01-01 00:00:00 -1:00)) + 3600

but it is unclear how to convert values using timezones:

$ udunits2 -H '86400 second since 1970-01-01 00:00:00 -1:00' -W 'second since 1970-01-01 00:00:00 -0'
udunits2: Units are not convertible
$ 

Is it possible? How?

@semmerson
Copy link
Collaborator

The problem was due to a bug in udunits2(1). It should be fixed in the latest release (2.2.26).

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

2 participants