Time type

Undocumented

Methods

+(t:Time, d:Duration) Source: stdlib.ngs:9023
Undocumented

Returns

Time
<(a:Time, b:Time) Source: stdlib.ngs:8988
Undocumented
<=(a:Time, b:Time) Source: stdlib.ngs:8987
Undocumented
==(a:Time, b:Time) Source: stdlib.ngs:8986
Undocumented
>(a:Time, b:Time) Source: stdlib.ngs:8990
Undocumented
>=(a:Time, b:Time) Source: stdlib.ngs:8989
Undocumented
Bool(t:Time) Source: stdlib.ngs:9009
Undocumented
echo_cli(t:Time)experimental Source: stdlib.ngs:9773
Echo the value before exiting the program, when the value is a result of evaluating the whole program. Only works with TTY.
init(t:Time) Source: stdlib.ngs:8938
Initialize Time object with current time.
init(t:Time, epoch:Int) Source: stdlib.ngs:8943
Initialize Time object with the given epoch time.
init(t:Time, s:Str, format:Str) Source: stdlib.ngs:8947
Undocumented
init(t:Time, s:Str) Source: stdlib.ngs:8958
Parse known date/time formats
Int(t:Time) Source: stdlib.ngs:8997
Undocumented
JsonData(t:Time) Source: stdlib.ngs:9012
Convert Time into JSON compatible data structure - number (epoch seconds)
Str(t:Time, format:Str='%F %T %Z', gmt:Bool=false) Source: stdlib.ngs:8992
String representation of Time

Parameters

formatstrftime(3) format
gmtUse GMT time zone (defaults to local time zone)