You are here: Re: Why Date() goes backwards « PHP Programming Language « IT news, forums, messages
Re: Why Date() goes backwards

Posted by Gordon Burditt on 11/15/06 00:36

>I made a test page that just outputs about 100 date('Y-m-d H:i:s');
>
>Occationally (say, 1 out of 30 tries) the time goes backwards by one or
>two seconds. Like:
>
>2006-11-14 07:29:16
>2006-11-14 07:29:16
>2006-11-14 07:29:16
>2006-11-14 07:29:14
>2006-11-14 07:29:14
>2006-11-14 07:29:14
>
>Or even reloading the page, the 2nd page will show an earlier time than
>the first page by one or two seconds.
>
>It's no big deal. It's just interesting. I wonder, how can this happen?

Is the server time synchronized to anything? NTP tries to avoid large
jumps like that, but other methods (like maybe "net time" or "ntpdate")
might not.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация