php date_timestamp_get to seconds -
trying time in format of seconds in php
$date = date_create(); $now= date_timestamp_get($date);
output $now = 1454706668
think microseconds not sure (http://php.net/manual/en/function.date-timestamp-get.php seem missing bit of info)
i tryd few things non seem working right ( google failed me :) )
how convert seconds?
use php function
time()
returns current time measured in number of seconds since unix epoch (january 1 1970 00:00:00 gmt)
Comments
Post a Comment