note 36760 added to function.jdtounix

From: Date: Tue, 21 Oct 2003 16:10:23 +0000
Subject: note 36760 added to function.jdtounix
Groups: php.notes 
Request: Send a blank email to php-notes+get-59044@lists.php.net to get a copy of this message
Remember that unixtojd() assumes your timestamp is in GMT, but jdtounix() returns a timestamp in localtime. This fooled me a few times. So if you have: $timestamp1 = time(); $timestamp2 = jdtounix(unixtojd($timestamp1)); Unless your localtime is the same as GMT, $timestamp1 will not equal $timestamp2. ---- Manual Page -- http://www.php.net/manual/en/function.jdtounix.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36760 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36760&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36760&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59044) next »