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)

http://php.net/manual/en/function.time.php


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -