note 99598 deleted from datetime.gettimestamp by googleguy

From: Date: Tue, 23 Oct 2012 13:32:02 +0000
Subject: note 99598 deleted from datetime.gettimestamp by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191500@lists.php.net to get a copy of this message
Note Submitter: xwisdom at yahoo dot com ---- It's important to note that on 32-Bit systems getTimestamp() will return false for dates greater than 2038, while format("U") will return an unsigned integer This will return false: <?php $dt = new DateTime('2039/1/1'); echo $dt->getTimestamp(); ?> But this will return a value: <?php $dt = new DateTime('2039/1/1'); echo $dt->format('U'); ?>

« previous php.notes (#191500) next »