Appearance
helix / TimeValue
Class: TimeValue โ
Defined in: core/values/time.ts:12
A duration in ticks, seconds or days.
Time(20) -> "20" (ticks) Time.seconds(5) -> "5s" Time.days(1) -> "1d"
Implements โ
Constructors โ
Constructor โ
new TimeValue(
amount,unit):TimeValue
Defined in: core/values/time.ts:13
Parameters โ
amount โ
number
unit โ
Unit
Returns โ
TimeValue
Accessors โ
ticks โ
Get Signature โ
get ticks():
number
Defined in: core/values/time.ts:19
The duration in game ticks, rounded as schedule rounds it.
Returns โ
number
Methods โ
render() โ
render():
string
Defined in: core/values/time.ts:23
Returns โ
string