Re: 1-1-2000 into unix time
| From: | heinisch | Date: | Tue, 25 Jul 2000 18:50:06 +0000 |
| Subject: | Re: 1-1-2000 into unix time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8116@lists.php.net to get a copy of this message | ||
At 17:07 25.07.00 +0200, you wrote:
>what is the simplest way to convert string time into to unix one?
>
>thanks
>moshe
oops the last one was sent too early
The right answer is:
$yourtime=1-1-2000
$tpiece=explode("-",$yourtime);
$timestamp=mktime(0,0,0,$tpiece[1],$tpiece[0],$tpiece[3]);
/* check out if the tpieces in the correct sequence couzld be for german dates */
g´s oliver