You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a date specification such as seconds since 1234-6789, it seems the information after the 6 is totally discarded by the parser. I determine this by tracking down the unit equivalence in the CLI:
udunits2 -H 'min since 1234-6789' -W 'min since 1234-06-01 00:00:00'
1 min since 1234-6789 = 1 (min since 1234-06-01 00:00:00)
x/(min since 1234-06-01 00:00:00) = (x/(min since 1234-6789))
It seems to me that this is undesirable behaviour - either it should preserve the information, or raise.
Whilst the above is a toy example, I had a test example as below:
udunits2 -H 'min since 2020-0101' -W 'min since 2020-01-01 01:00:00'
1 min since 2020-0101 = 1 (min since 2020-01-01 01:00:00)
x/(min since 2020-01-01 01:00:00) = (x/(min since 2020-0101))
The implication of the above is more serious - note that not all information is discarded, and in fact the final 1 is interpreted as an hour specification. I would have expected 2020-0101 to represent 2020-01-01 (or raise an error)
The text was updated successfully, but these errors were encountered:
Using a date specification such as
seconds since 1234-6789
, it seems the information after the 6 is totally discarded by the parser. I determine this by tracking down the unit equivalence in the CLI:It seems to me that this is undesirable behaviour - either it should preserve the information, or raise.
Whilst the above is a toy example, I had a test example as below:
The implication of the above is more serious - note that not all information is discarded, and in fact the final 1 is interpreted as an hour specification. I would have expected
2020-0101
to represent2020-01-01
(or raise an error)The text was updated successfully, but these errors were encountered: