Show HN: A Unix timestamp converter that includes the micro and nanoseconds
justquickmath.com
Show HN: A Unix timestamp converter that includes the micro and nanoseconds
1–10 of 27 posts
Re: Show HN: A Unix timestamp converter that includes the micro and nanoseconds
#2 package unix
import "time"
// 2023-03-04 11:35:43.4859519 -0600 CST
func unix_nano(nsec int64) string {
return time.Unix(0, nsec).String()
}
https://godocs.io/time#UnixRe: Show HN: A Unix timestamp converter that includes the micro and nanoseconds
#3The first result in Google [1] which I often use, lets me paste a unix timestamp in seconds, milliseconds or nano seconds, and it accordingly converts it to a Human readable string.
Is that not the feature you built this for?
Re: Show HN: A Unix timestamp converter that includes the micro and nanoseconds
#4Mate, I'm very confused. The first result in Google [1] which I often use, lets me paste a unix timestamp in seconds, milliseconds or nano seconds, and it accordingly converts it to a Human readable string. Is that not the feature you built this for? [1] - https://www.epochconverter.com/
Re: Show HN: A Unix timestamp converter that includes the micro and nanoseconds
#5Mate, I'm very confused. The first result in Google [1] which I often use, lets me paste a unix timestamp in seconds, milliseconds or nano seconds, and it accordingly converts it to a Human readable string. Is that not the feature you built this for? [1] - https://www.epochconverter.com/
How did this reach the front page?
Re: Show HN: A Unix timestamp converter that includes the micro and nanoseconds
#6Re: Show HN: A Unix timestamp converter that includes the micro and nanoseconds
#7Mate, I'm very confused. The first result in Google [1] which I often use, lets me paste a unix timestamp in seconds, milliseconds or nano seconds, and it accordingly converts it to a Human readable string. Is that not the feature you built this for? [1] - https://www.epochconverter.com/
Exactly. I've been using epoch converter for years. It's the first thing that comes up in search results too. How did this reach the front page?
Re: Show HN: A Unix timestamp converter that includes the micro and nanoseconds
#8Re: Show HN: A Unix timestamp converter that includes the micro and nanoseconds
#9Looks like you have varying precision with date, might be using floating point?