Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Handling negative timestamps #63
So the background is this: I was working with data in unix timestamp format (I think).
Anyway, I managed to get the expected result with this (from your stackoverflow answer)
I am not sure if this background helps or was rather a silly question/issue.
Actually, crap. I exposes a logic bug. For 'small numbers' I switch to dates. Can't do that.
R> utctime(0)  "1970-01-01" R>
it should also work for, say,
I found a possible solution on the commute in, but it needs testing. We have a problem because we clearly want to recognise '20170508' as well. But maybe differentiating between
As a general rule, for numeric data you can just load as a numeric vector and then do the convert you found, which essentially just sets the class attribute.
I wasn't thinking this through earlier, and you are quite frankly correct. This should always have worked.
I was a little too accomodating in the becoming allowing
I will add some more documentation to clarify. Thanks for filing this bug report. I think anytime will be a better package when I have this fully implemented (ie docs, tests, ...) and released.