note 46907 deleted from function.gmmktime by sean

From: Date: Thu, 28 Oct 2004 14:13:45 +0000
Subject: note 46907 deleted from function.gmmktime by sean
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79253@lists.php.net to get a copy of this message
Note Submitter: don at nospam dot spinningclock dot com ---- Here's the (very simple) function I wrote for getting a UK time for entering into MySQL: function ukTime(){ if (date("I") == "1"){ #we are in BST add 1 hour to GMT return gmdate("Y-m-d H:i:s",mktime()+3600); } else { return gmdate("Y-m-d H:i:s"); } } ---- Reason: useless example

« previous php.notes (#79253) next »