re: Do you prefer unix epoch (a number) or ISO 8601 (a string) for timestamps? VIEW POST

FULL DISCUSSION
 

In reality I always use a string. And always in the format YYYY-MM-DD with the optional addition of hh:mm:ss. This means a full date-time is only 19 bytes instead of 32 or 64 since 95% of the time I don't need the millisecond accuracy of epoch time.

 

Actually iirc, Unix time is 64 bits, not bytes. That means it’s only 8 bytes.

 
code of conduct - report abuse