RE: PHP Time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That worked just perfectly. Thank you.

-----Original Message-----
From: parasane@xxxxxxxxx [mailto:parasane@xxxxxxxxx] On Behalf Of Daniel
Brown
Sent: Monday, July 02, 2012 3:02 PM
To: Rob Weissenburger
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  PHP Time

On Mon, Jul 2, 2012 at 4:00 PM, Rob Weissenburger <rob@xxxxxxxxxxxxxxx>
wrote:
> Hello everyone,
>
>   I know php time() gives the current unix time which you can format 
> out to a normal date and time. Is there a way to format a specific 
> date and time back to unix time?

    Yup.  Look at strtotime() and mktime():

        http://php.net/strtotime
        http://php.net/mktime

--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux