You are here: Re: Display time and include milliseconds « All PHP « IT news, forums, messages
Re: Display time and include milliseconds

Posted by Jim Michaels on 02/27/06 08:16

"Ren" <nobody@nospam.com> wrote in message
news:dtkkse$ns9$1@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com...
> Hi all,
>
> I am trying to display the current time including milliseconds (two digits
> only). So for example the current time will have Hour : Minute : Second :
> Millisecond.
>
> Example: 15:25:05:03 (This would represent 3:25pm)
>
> Just to clarify the millisecond will be similar to what is shown on a
> stopwatch. So once you get past 99 milliseconds the second will go up by
> 1.
>
> Does anyone know how to display this in php?
>
> Thanks
> Ren
>

another way to get milliseconds down to 2 digits is to zero-fill to 3
digits, and lop-off the last digit using substring().

 

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

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