Re: fecha a timestamp
| From: | Tomas V.V.Cox | Date: | Thu, 01 Feb 2001 16:03:48 +0000 |
| Subject: | Re: fecha a timestamp | ||
| References: | 1 2 3 4 5 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-6621@lists.php.net to get a copy of this message | ||
Andrés Said Bazurto Solarte wrote:
>
> Hola!
>
> me explico mejor:
>
> La hora llega en un string como este:
> 2001-02-01 08:44:00
>
> y debo convertirlo en un timestamp
>
usa strtotime (apartado DateTime Functions)
Saludos,
Tomas V.V.Cox