Bickey Posted January 25, 2011 Share Posted January 25, 2011 How can I echo this as seconds? $date_at_timezone = new DateTimeZone('Asia/Shanghai'); $date = new DateTime(); $date->setTimezone($date_at_timezone); echo $date->format('l dS F Y h:i:s A') . "Asia/Shanghai<br>"; Quote Link to comment Share on other sites More sharing options...
requinix Posted January 25, 2011 Share Posted January 25, 2011 Which "seconds"? Seconds since the epoch? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.