Re: Date->TimeStamp

From: Date: Mon, 22 Oct 2001 07:42:12 +0000
Subject: Re: Date->TimeStamp
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71802@lists.php.net to get a copy of this message
<Original message> From: Daniel Harik <http404@hot.ee> Date: Sat, Oct 20, 2001 at 09:10:05AM -0800 Message-ID: <1347590093.20011020091005@hot.ee> Subject: [PHP] Re:Date->TimeStamp > I've tried this code: > > $timea = explode(" ",$timepostsed); > $timea1 = explode("-",$timea[0]); > $timea2 = explode(":",$timea[1]); > $timestamp = > mktime($timea2[0],$timea2[1],$timea2[2],$timea1[1],$timea1[2],$timea1[0]); > > > But it return "-1" > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > </Original message> <Reply> Maybe a bit late, but I wasn't at work during the weekend ;) strtotime() works fine for this! </Reply> -- * R&zE: -- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze@datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««

« previous php.general (#71802) next »