Get the Unix timestamp of this

advertisements

I am afraid, but i am unable to find any function for this? I can do this

echo date("Y-m-d g:i:s a",  1333442414662) . "\n";

but I am unable to find any function to convert time from function

date("Y-m-d H:i:s", time());

to unix timestamp


It's trivially easy as this:

$yourdate =date("Y-m-d H:i:s", time());

strtotime($yourdate);