note 31477 deleted from ref.datetime by vincent

From: Date: Thu, 11 Sep 2003 11:58:46 +0000
Subject: note 31477 deleted from ref.datetime by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-56087@lists.php.net to get a copy of this message
Note Submitter: Sascha@Sonicdelay.de ---- After having some trouble checking deltas between DB-Timestamps and my server time, I use this to convert something like a MySQL-Timestamp(14) to the UNIX format: $Timestamp="20030423145607"; $UnixTimestamp = strtotime (substr_replace (substr (substr ($Timestamp,0,2).chunk_split (substr ($Timestamp,2,6),2,"-").chunk_split (substr ($Timestamp,8),2,":"),0,19)," ",10,1)); ->1051102567

« previous php.notes (#56087) next »