Re: Convert to a time() value
| From: | (Jonathan Chum) | Date: | Sun, 22 Oct 2000 19:51:58 +0000 |
| Subject: | Re: Convert to a time() value | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-21659@lists.php.net to get a copy of this message | ||
Great, thanks! That's exactly what I was looking for. :)
On 22 Oct 2000 12:40:21 -0700, matt@smokescreen.org ("Matt") wrote:
>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.