This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Calculate a precise time difference. | |
* @param string $start result of microtime() | |
* @param string $end result of microtime(); if NULL/FALSE/0/'' then it's now | |
* @return float difference in seconds, calculated with minimum precision loss | |
*/ | |
function microtime_diff($start, $end = NULL) | |
{ | |
$end = empty($end) ? microtime() : $end; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "joel-depiltech/date-format-conversion", | |
"description": "Translate date/time format between `date()` and `strftime()`", | |
"authors": [ | |
{ | |
"name": "Chauncey McAskill", | |
"email": "[email protected]", | |
"homepage": "https://github.com/mcaskill" | |
}, | |
{ |