Re: Timestamps
| From: | Seth Lepzelter | Date: | Tue, 20 Jun 2000 23:02:45 +0000 |
| Subject: | Re: Timestamps | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2394@lists.php.net to get a copy of this message | ||
Hi,
You can use the UNIX_TIMESTAMP function in mysql:
select UNIX_TIMESTAMP(mytimestamp) from blah...
you can also just do "select UNIX_TIMESTAMP();" to get the current
timestamp.
-Seth
On Wed, 21 Jun 2000, Simon Berg wrote:
> Hello,
> I need to convert a mysql timestamp (200006210000) to a unix timestamp
> (seconds from 1970), anyone know how to do it?
>
> -Simon
>
>
>
> --
> 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
>
>