note 73586 added to function.strtotime
| From: | oli at laxfarm dot net | Date: | Fri, 02 Mar 2007 14:41:16 +0000 |
| Subject: | note 73586 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124012@lists.php.net to get a copy of this message | ||
due to problems i had with german date format and php versions below 5.1 i wrote a little function
to get the correct unix timestamp for the date.
nothing special but very helpful :)
function datum2Unixtime( $strDatum )
{
$tempValue = split( "\." , $strDatum );
$retValue = mktime( 0 , 0 , 0 , $tempValue[1] , $tempValue[0] , $tempValue[2] );
return $retValue;
}
----
Server IP: 194.145.210.3
Probable Submitter: 213.61.99.98
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- https://master.php.net/note/edit/73586
Del: integrated -- https://master.php.net/note/delete/73586/integrated
Del: useless -- https://master.php.net/note/delete/73586/useless
Del: bad code -- https://master.php.net/note/delete/73586/bad+code
Del: spam -- https://master.php.net/note/delete/73586/spam
Del: non-english -- https://master.php.net/note/delete/73586/non-english
Del: in docs -- https://master.php.net/note/delete/73586/in+docs
Del: other reasons-- https://master.php.net/note/delete/73586
Reject -- https://master.php.net/note/reject/73586
Search -- https://master.php.net/manage/user-notes.php