S
S
sorry_i_noob2018-03-30 20:08:54
PHP
sorry_i_noob, 2018-03-30 20:08:54

php - strtotime - what is the difference between midnight and today? On php.net it says "Time is set to 00:00:00". And the difference?

php - strtotime - what is the difference between midnight and today? On php.net it says "Time is set to 00:00:00". And the difference?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-03-30
@Stalker_RED

It's easy to check

echo date('Y-m-d H:i:s', strtotime('midnight')). // 2018-03-30 00:00:00
"\n".date('Y-m-d H:i:s', strtotime('today'));    // 2018-03-30 00:00:00
sandbox.onlinephpfunctions.com/code/fe825f23b0b5e6...
No difference, just synonyms for convenience.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question