Time relative to NOW in human readable format - absolute (negative as well as positive)
TODO: make "now" adjustable
public static relLengthOfTime ( mixed $date, string | null $format = null, array $options = [] ) : string | ||
$date | mixed | |
$format | string | null | Format |
$options | array | Options - default, separator - boolean zero: if false: 0 days 5 hours => 5 hours etc. - verbose/past/future: string with %s or boolean true/false |
return | string |