Hacker News new | past | comments | ask | show | jobs | submit login

Seconded. I now store timestamps as the number of microseconds since the epoch. It may not be as fancy as an actual timestamp type, but at least it works without surprises.



I went down this path for a time and I recommended it for MySQL some time ago. But actually epoch time and timestamptz are equivalent. You can specify the number of decimals in a timestamptz to get to microsecond precision if you like.


Except you have no idea when if you look at the database manually.


Luckily we provide a GUI so they can look at it in context.




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

Search: