note 78847 added to function.date-parse

From: Date: Tue, 30 Oct 2007 21:40:51 +0000
Subject: note 78847 added to function.date-parse
Groups: php.notes 
Request: Send a blank email to php-notes+get-131835@lists.php.net to get a copy of this message
If you're using PHP4 and need similar usage of this function there is getdate() however, getdate() only accepts a timestamp and not a date time; a work around is to use strtotime() in conjunction. Example usage: getdate(strtotime('2006-12-12 10:00:00')); Result: Array ( [seconds] => 0 [minutes] => 0 [hours] => 10 [mday] => 12 [wday] => 2 [mon] => 12 [year] => 2006 [yday] => 345 [weekday] => Tuesday [month] => December [0] => 1165946400 ) Note: This is only helpful if you're looking just for the month, day, year, hour, minute, second values. ---- Server IP: 216.235.15.211 Probable Submitter: 209.121.69.16 ---- Manual Page -- http://www.php.net/manual/en/function.date-parse.php Edit -- https://master.php.net/note/edit/78847 Del: integrated -- https://master.php.net/note/delete/78847/integrated Del: useless -- https://master.php.net/note/delete/78847/useless Del: bad code -- https://master.php.net/note/delete/78847/bad+code Del: spam -- https://master.php.net/note/delete/78847/spam Del: non-english -- https://master.php.net/note/delete/78847/non-english Del: in docs -- https://master.php.net/note/delete/78847/in+docs Del: other reasons-- https://master.php.net/note/delete/78847 Reject -- https://master.php.net/note/reject/78847 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131835) next »