Formats a number (secs) in Task-Duration-Style, with number of weeks, days, hours and minutes.
Syntax
format_taskduration ($number, ?int $hoursPerDay=8, ?int $daysPerWeek=5): string
- $number - int|float|string|null
The number to format. - ...
Examples
{{ hublify.format_taskduration( <?> ) }} => 2w 4d 8h 35m