Hacker News new | ask | show | jobs
by mikeash 4675 days ago
Precision can be fixed by just adding a decimal point. And a "UNIX time stamp" doesn't need a time zone because it's always UTC.

However, you're overall point there remains valid, because people will try to pass off something as a "UNIX time stamp" that is actually in a different time zone. There is value to self-describing data.

1 comments

It's frequently important to preserve the original time zone offset of a timestamp. Sending everything as UTC loses that information.
There is nothing preventing you from sending a time zone offset (or an Olson timezone id like 'America/Los_Angeles') along with the Unix Time.
Sure no problem. We just have to invent a new format.
That's what JSON is for:

{timestamp: xyz, tz: "America/Los_Angeles"}