Re: mktime with Feb or Jan ..

From: Date: Mon, 03 Feb 2003 13:25:23 +0000
Subject: Re: mktime with Feb or Jan ..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-134105@lists.php.net to get a copy of this message
readon about strtotime() function www.php.net/strtotime you might not even need to preg_match() it -- Maxim Maletsky maxim@php.net Torsten Rosenberger <rosenberger@taoweb.at> wrote... : > Hello > > I parse the apache logfile and get a date format like this > [03/Feb/2003:09:22:50 +0100] > OK i split it with preg_match and the result is > > Array > ( > [0] => 03 > [1] => Feb > [2] => 2003 > [3] => 09 > [4] => 22 > [5] => 50 > ) > > Now I'd like to convert it in a timestamp > with mktime but the problem is Feb ($t[1]) > > $lasttime = mktime($t[3], $t[4], $t[5], $t[1], $t[0], $t[2]); > > Is it possible to convert Feb in 02, > > BR/Torsten > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#134105) next »