How to convert microseconds to two digits

Hi Team,
I have using the below code to get the current time in microseconds date(“u”);
but i want the microseconds to be in two digits.
When i put this code it is showing like this 0.89115400 1283846202
Can you tell me how to get the value only two digits like seconds.
Thanks

I’m not clear if you just really want SECONDS… or if you want ‘2’ characters/digits of the microseconds value?

Here is how you can get just the ‘seconds’:

echo date('h:i:s'); //full time stamp
echo '<br>';
echo date('s'); //seconds only
echo '<br>';

Sponsor our Newsletter | Privacy Policy | Terms of Service