Example:
~~~
echo Enum::timeElapsed('21-Jan-2016');
~~~
public static timeElapsed ( string $fromTime = null, boolean $human = true, string $toTime = null, string $append = null ) : string | ||
$fromTime | string | start date time |
$human | boolean | if true returns an approximate human friendly output. If set to `false`, will attempt an exact conversion of time intervals. |
$toTime | string | end date time (defaults to current system time) |
$append | string | the string to append for the converted elapsed time. Defaults to ' ago'. Example Output(s): 10 hours ago |
return | string |