note 27516 added to function.localtime

From: Date: Mon, 09 Dec 2002 19:25:44 +0000
Subject: note 27516 added to function.localtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-40621@lists.php.net to get a copy of this message
You can implement gmtime quote simply. function GetTZOffset() { $Offset = date("O", 0); $Parity = $Offset < 0 ? -1 : 1; $Offset = $Parity * $Offset; $Offset = ($Offset - ($Offset % 100))/100*60 + $Offset % 100; return $Parity * $Offset; } $TZOffset = GetTZOffset(); $t_time = time()-$TZOffset*60; #Counter adjust for localtime() $t_arr = localtime($t_time); -- http://www.php.net/manual/en/function.localtime.php http://master.php.net/manage/user-notes.php?action=edit+27516 http://master.php.net/manage/user-notes.php?action=delete+27516 http://master.php.net/manage/user-notes.php?action=reject+27516

« previous php.notes (#40621) next »