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

Page Links


Special Pages


Wikis

?

Render Time: 80ms

DB GetPage 46
Generate Html 3
SaveChanges (1) 16
Render Body 0
Render Sidebar 12