[PLUG] PHP timestamp difference on Linux and Windows systems
shantanoo at gmail.com
Sat Mar 19 14:10:53 PDT 2011
On 19-Mar-2011, at 11:04 AM, Navin Kabra wrote:
> 19800 seconds = 5 hours and 30 minutes.
> sounds like a timezone issue. (UTC vs IST)
> On Fri, Mar 18, 2011 at 10:40 PM, <pankaj at glug4muz.org> wrote:
>> When I am executing a php code like below:
>> echo $timestamp;
>> on Linux and Windows system then there is always a difference of 19800 in
>> output. The result shown on Linux system is always 19800 less than the
>> value displayed on Windows system. But theoretically output on both
>> systems should be same because the number of seconds elapsed since
>> 01/01/1970 to 03/01/2011 should always be same on both operating systems.
>> Can any one please explain the reason behind this difference.
You may like to go through —
Hardware Clock ≠ System Clock — probable problem area.
More information about the plug-mail