Re: Display time and include milliseconds



Ren wrote:
Ok i meant hundredths of a second. How do i do this using microtime()????


"Oli Filth" <catch@xxxxxxxxxxxxxx> wrote in message news:M8lLf.43433$K42.9255@xxxxxxxxxxxxxxxxxxxxxxx

Ren said the following on 23/02/2006 15:39:

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.

So you actually mean hundredths of a second?

You can get the fractional time using microtime().


--
Oli




Please do not top-post,,

http://us3.php.net/manual/en/function.microtime.php has many examples of how to use microtime() This, with the DATE() function may give you what you want....
.



Relevant Pages

  • Re: Elapsed time in thousands or hundreds
    ... tic/toc appear to measure in milliseconds. ... what can I do to display in ... Gautam Vallabha ...
    (comp.soft-sys.matlab)
  • Re: How do I display the current time *including milliseconds*?
    ... >> I need to display the current time including milliseconds. ... >> Al Koch, ... >int minute=madate.getMinutes; ...
    (comp.lang.java.programmer)
  • Re: using PIC to act as button push
    ... Yes, I do realize that, I would imagine because of their debouncing ... routines, I will need to wait it out... ... Still, if that is 50 milliseconds ON to recognize a button press, and ... is about 5 seconds to establish and display the messages I ...
    (sci.electronics.design)
  • Display time and include milliseconds
    ... I am trying to display the current time including milliseconds (two digits ... So once you get past 99 milliseconds the second will go up by 1. ... Does anyone know how to display this in php? ...
    (alt.php)
  • RE: Help with Time Function
    ... the format for milliseconds are ... to display results you can use ... which will take care of hours over 24 ... The tricky part is the times are all the way to milliseconds. ...
    (microsoft.public.excel.worksheet.functions)