Conversion between Unix and Localized Datetime

From: Date: Tue, 04 Oct 2016 10:40:36 +0000
Subject: Conversion between Unix and Localized Datetime
Groups: php.general 
Request: Send a blank email to php-general+get-325763@lists.php.net to get a copy of this message
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.

« previous php.general (#325763) next »