Re: Convert to a time() value
| From: | Matt | Date: | Sun, 22 Oct 2000 19:40:31 +0000 |
| Subject: | Re: Convert to a time() value | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-21658@lists.php.net to get a copy of this message | ||
I assume that by a "time()" value you mean a Unix time stamp (some number in
the 9 billions).
$t = "30-May-2000";
$unixtime = strtotime($t);
This will put the unix timestamp into the variable $unixtime.
http://php.net/manual/function.strtotime.php
"Jonathan Chum" <jchum@techdevelopers.com> wrote in message
news:39f33f99.183693857@news.php.net...
> I cannot seem to figure this problem out. My boss has the old db of
> time values in a format such as: 30-May-2000. What I need to do is
> convert into a time() value. How would I go about doing this? Thanks.