Hacker Newsnew | past | comments | ask | show | jobs | submit | surfingninja's commentslogin

Thank you for the feedback! I identified the root cause of the bug and uploaded a fixed version.


What do you mean by varying precision? Do you have an example? Thanks


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


See my other response to the parent for the reason I felt there was room to improve on the existing websites. Are there any other features you would find useful in a timestamp converter?


Take the timestamp "1677951565000123456" for example - If I put it into the link you posted, it just gives me "Saturday, March 4, 2023 11:39:25 AM". While it's a minor drawback, it requires another step to figure out the microsecond and nansecond part of the timestamp since it's not in the output. My website would display "Saturday March 3 2023 11:39:25.000,123,456 AM -06:00 (nanos)", which gives you "000,123,456" telling you the milli,micro,nano breakdown of the timestamp


> Take the timestamp "1677951565000123456" for example - If I put it into the link you posted, it just gives me "Saturday, March 4, 2023 11:39:25 AM"

It looks like it only gives millisecond resolution in the output, and only displays milliseconds if there is at least 1 millisecond. Give it 1677951565020123456 and then you will get 11:39:25.020.


I started learning HTML/CSS on Codecademy about 8 years ago when I was in early highschool. Now about to graduate from college with my CS degree. Thanks for making a great service that helped shape my life


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

Search: