note 69372 deleted from function.mktime by derick

From: Date: Sun, 24 Sep 2006 11:46:49 +0000
Subject: note 69372 deleted from function.mktime by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-117495@lists.php.net to get a copy of this message
Note Submitter: mirek at auto dot cz ---- Hello, my little contribution - conversion from ISO8601 date-time stamp to epoch /** * isodate2epoch($iso_date) - prevede datum v ISO formatu na INT * iso:2006-09-01T10:16:37+02:00 * @author dev * @copyleft Anima, auto.cz, (c)200? * @since 2.9.2006 * @version 1.0 * * @changed [2.9.2006 17:15:13] (dev) - created **/ function isodate2epoch($iso_date){ list($date,$time_dst) = explode('T',$iso_date); list ($y,$m,$d) = explode('-',$date); list ($time,$diff) = explode('+',$time_dst); list ($h,$i,$s) = explode(':',$time); return mktime($h,$i,$s,$m,$d,$y); }

« previous php.notes (#117495) next »