Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

At first I didn't understand the input format, which seems to try and autodetect the units.

When I enter 1e-3, I get 1ms past epoch start, but 1e-4 is 0ms past epoch start. And that isn't what I'd expect.

Here's another odd one, or why I wonder what internal precision things are calculated to:

1234567800000000090.000 is Friday February 2 2009 11:30:00.000,90.,000 PM +00:00 (nanos)

But 1234567800000000090.0001 is Friday February 2 2009 11:30:00.000,0.0,001 PM +00:00 (nanos)

Arguably, UNIX time was really just seconds, but it is handy to have more precision, it just didn't always align with what I'd expect.



Thanks for the feedback! I will make sure to fix those edge cases with fractional nanosecond values




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: