Conversion between Unix and Localized Datetime

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

 



Hello,

I have a unix timestamp such as 1475420421, and want to convert it to a
string like '2016-10-02 15:00:21' in a procedural way and without
changing session/objects timezone, and independently of
server/software/client timezones.

Is there some function that allows to format this, calling it as
MyDateString(1475420421, 'Europe/Paris') ?

Thanks.

-- 
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