Email or username:

Password:

Forgot your password?
Top-level
Григорий Клюшников

iliazeus, at least PHP's time() returns unixtime in seconds so there are examples of both.

3 comments
iliazeus

@grishka well, PHP's stdlib was basically starting as thin wrappers over C stdlib functions.

Python also has it in seconds, but it does this weird thing where its timestamps are floating-point.

C# seems to use 100-microsecond "ticks".

Go uses nanoseconds, iirc.

So yeah, it's even more ambiguous.

If I have a choice, I usually prefer ISO 8601 strings myself. They're standard, unambiguous, human-readable, and even sortable as strings.

@nikitonsky

Григорий Клюшников

iliazeus, iirc it's also popular in binary file formats to store timestamps as unixtime in seconds.

Go Up