note 78604 added to function.date
| From: | serg at osu1 dot php dot net | Date: | Thu, 18 Oct 2007 18:57:16 +0000 |
| Subject: | note 78604 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131522@lists.php.net to get a copy of this message | ||
<?php
/* function
get timestamp
@param date in RFC2822 (date('r',time))
@return timestamp
@author Sergey
@see http://soft.webing.ru
*/
function timestamp_from_RFC_2822($date)
{
$months_ar=array (" ","Jan","Feb","Mar","Apr",
"May","Jun","Jul","Aug",
"Sep","Oct","Nov","Dec");
list($temp,$day,$month,$year,$hour, $minute, $second,$temp) = split('[: ]', $date);
$month = array_search($month, $months_ar);
return mktime($hour, $minute, $second, $month, $day, $year);
}
?>
----
Server IP: 195.54.192.44
Probable Submitter: 81.222.191.235
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- https://master.php.net/note/edit/78604
Del: integrated -- https://master.php.net/note/delete/78604/integrated
Del: useless -- https://master.php.net/note/delete/78604/useless
Del: bad code -- https://master.php.net/note/delete/78604/bad+code
Del: spam -- https://master.php.net/note/delete/78604/spam
Del: non-english -- https://master.php.net/note/delete/78604/non-english
Del: in docs -- https://master.php.net/note/delete/78604/in+docs
Del: other reasons-- https://master.php.net/note/delete/78604
Reject -- https://master.php.net/note/reject/78604
Search -- https://master.php.net/manage/user-notes.php