Skip to content

Instantly share code, notes, and snippets.

@technoknol
Created November 1, 2014 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technoknol/bb2dcff3a00aec5798c9 to your computer and use it in GitHub Desktop.
Save technoknol/bb2dcff3a00aec5798c9 to your computer and use it in GitHub Desktop.
<?php
// Get current time in milliseconds
$timeparts = explode(" ",microtime());
$currenttime = bcadd(($timeparts[0]*1000),bcmul($timeparts[1],1000));
echo $currenttime;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment