I'm storing laptimes in a database in the following format: 103.900.
I'm outputting time from the database by using the following date format:
date('i:s.U', $video->best_lap)
What i get back is: 01:43.103. The actual output time should display 01:43.900. Is there someway I can make PHP play nicely?
PHP's date functions (using unix timestamps, which are integer values) don't support fractional seconds (as described in the PHP Docs)
And note also that the fractional part format mask is
u, notU(lower-case, not upper-case)However, DateTime objects do support fractional seconds, so you can use: