Ask HN: Timestamp vs. millis, storing time in database

https://news.ycombinator.com/item?id=12048536
by govindpatel • 10 years ago
2 2 10 years ago

Ok. this question usually come to my mind and always I prefer using millis because I think that is the easiest way to store and get the time in database.

But some of my friends prefer using timestamp.

So I just wanted to know, What is the best practise for storing time in database ?

When choosing between timestamp and millis which one you prefer using and why?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com