|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-09-06 19:18 UTC] studiobl at mageos dot com
It's not unresolvable but it must be known : in PHP : jdtounix(today); returns a number of seconds sinc an origin (here we call it A) but in MYSQL : UNIX_TIMESTAMP(today at 00:00:00) returns A minus 7200 seconds that's a difference of 2 hours ! in fact when you do jdtounix(today) it more like jdtounix(today at 02:00:00).... PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
By the way I don't know why there would be a link between my system date and those operations ??? Friday 2001-09-07 -> jd=2462160 jdtounix(2462160)=999820800 sec UNIX_TIMESTAMP('2001-09-07 00:00:00')=999813600 sec but : UNIX_TIMESTAMP('2001-09-07 02:00:00')=999820800 sec Is it clear ?