Skip to content

Commit 42bc9ec

Browse files
Update ReadableTimeLength
1 parent 78b3a13 commit 42bc9ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Helpers.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,12 @@ function ReadableDiffDateTime($old, $new = null, string $timezone = null): ?stri
123123
*
124124
* @param int $input
125125
* @param string $comma
126+
* @param boolean $short
126127
* @return string
127128
**/
128-
function ReadableTimeLength(int $input, string $comma = ' '): ?string
129+
function ReadableTimeLength(int $input, string $comma = ' ', bool $short = false): ?string
129130
{
130-
return Readable::getTimeLength($input, $comma);
131+
return Readable::getTimeLength($input, $comma, $short);
131132
}
132133

133134
/**

0 commit comments

Comments
 (0)