Garry's Mod Wiki

string.NiceTime

  string string.NiceTime( number num )

Description

Formats the supplied number (in seconds) to the highest possible time unit.

Arguments

1 number num
The number to format, in seconds.

Returns

1 string
A nicely formatted time string.

Example

Output:
10 minutes 10 minutes 11 minutes 1 hour 1 year