I want a php script that generates random time:
For eg
first time : 2014-02-14 10:21:02
next time : 2014-02-14 08:21:02
only time changes date doesnot change.
I want a php script that generates random time:
For eg
first time : 2014-02-14 10:21:02
next time : 2014-02-14 08:21:02
only time changes date doesnot change.
You could do it with mt_rand() like this:
echo date('Y-m-d')." ".mt_rand(0, 23).":".mt_rand(0, 59).":".mt_rand(0, 59);