note 112565 deleted from function.date-timestamp-get by googleguy

From: Date: Sun, 30 Jun 2013 15:26:34 +0000
Subject: note 112565 deleted from function.date-timestamp-get by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-195408@lists.php.net to get a copy of this message
Note Submitter: prt at ed48 dot com ---- Example 01: <?php date_default_timezone_set("UTC"); $dftz011 = date_default_timezone_get(); echo '<br><b>' . $dftz011 . '</b><br><br>'; $dtmg011 = new DateTime(); $dtmg011->getTimestamp(); echo $dtmg011->format('B => (U) => T Y-M-d H:i:s'); ?> Example 02: <?php date_default_timezone_set("America/New_York"); $dftz021 = date_default_timezone_get(); echo '<br><b>' . $dftz021 . '</b><br><br>'; $dtmg021 = date_create(); date_timestamp_get($dtmg021); echo date_format($dtmg021, 'B => (U) => T Y-M-d H:i:s'); ?>

« previous php.notes (#195408) next »