<?php
/**
* This returns a string for the current time. You cannot convert directly into a float because
* it is too large. So you can adjust the epoch to something else if desired by setting adj.
*
* For example, set adj = 1733011200 to set the epoch to Sunday 1st of December 2024 12:00:00 AM
*
* To use the full string values, you have the option of using the BC Math Functions.
* https://www.php.net/manual/en/ref.bc.php
*
*/
function getTimeAsString( int $adj=0 ){
$str_time_arr = explode(' ', microtime() ); // string(21) "0.89115400 1283846202"
return ((int)$str_time_arr[1]-$adj) . substr($str_time_arr[0],1);
}
?>