E
E
Externus2015-07-19 09:31:08
MySQL
Externus, 2015-07-19 09:31:08

What are the benefits of using unixtime and datetime in MySql?

What are the benefits of using unixtime and datetime in MySql?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2015-07-19
@Stalker_RED

Datetime is readable. Unix timestamp is free from problems with leap seconds, daylight savings time, and so on.
Those. how deprived. Of course, if you compare the time on the day of the clock change as yesterday = today - 60 * 60 * 24, then you get an erroneous result. But the situation will not arise that you have the same time in the logs twice.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question