note 15080 added to function.date.php

From: Date: Mon, 27 Aug 2001 15:08:56 +0000
Subject: note 15080 added to function.date.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-17210@lists.php.net to get a copy of this message
For those who have PHP running in save mode, you could use the following code to get the CET time. In this case the original time that was returned when calling "date()" was GMT. $myCET = mktime(date("G")+2-date("I"),date("i"),date("s"),date("m"),date("d"),date("Y")); Now you can display every format you like using this variable. Example: echo date("d:m:Y H:i:s", $myCET); I hope you'll enjoy this... :) - Basje http://www.php.net/manual/en/function.date.php

« previous php.notes (#17210) next »