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: 33ms

DB GetPage 4
Generate Html 5
SaveChanges (1) 8
Render Body 0
Render Sidebar 13