Please do not cross post.

On Fri, Mar 18, 2011 at 10:40 PM,  <[email protected]> wrote:
> Hi,
>  When I am executing a php code like below:
>
> <?php
>  $timestamp=mktime(0,0,0,3,1,2011);
>  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.

Have you checked the timezone on both the machines?
19800 seconds = 5.5 hours
See http://www.wolframalpha.com/input/?i=19800+seconds+in+hours
Maybe both your machines have different time zones?

-- 
With Regards,
Mehul Ved
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to