Jun 23, 2003 #1 Patten Technical User Joined Aug 22, 2002 Messages 106 Location BE echo date("h:i:s" For displaying the time in hours, minutes and seconds. What if I want to display as well milliseconds?
echo date("h:i:s" For displaying the time in hours, minutes and seconds. What if I want to display as well milliseconds?
Jun 23, 2003 #2 sleipnir214 Programmer Joined May 6, 2002 Messages 15,350 Location US PHP's date() function was not designed to provide that kind of resolution. I recommend you use the date() function to provide the major (resolution 1 second or more) part of the date, then use microtime() (http://us3.php.net/manual/en/function.microtime.php) to fetch milliseconds. Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL! Upvote 0 Downvote
PHP's date() function was not designed to provide that kind of resolution. I recommend you use the date() function to provide the major (resolution 1 second or more) part of the date, then use microtime() (http://us3.php.net/manual/en/function.microtime.php) to fetch milliseconds. Want the best answers? Ask the best questions: http://www.catb.org/~esr/faqs/smart-questions.htmlTANSTAAFL!