note 15080 deleted from function.date by jimw

From: Date: Fri, 02 Nov 2001 01:12:20 +0000
Subject: note 15080 deleted from function.date by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-20100@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

« previous php.notes (#20100) next »