Time type

Undocumented

Methods

<(a:Time, b:Time) Source: stdlib.ngs:7645
Undocumented
<=(a:Time, b:Time) Source: stdlib.ngs:7644
Undocumented
==(a:Time, b:Time) Source: stdlib.ngs:7643
Undocumented
>(a:Time, b:Time) Source: stdlib.ngs:7647
Undocumented
>=(a:Time, b:Time) Source: stdlib.ngs:7646
Undocumented
Bool(t:Time) Source: stdlib.ngs:7666
Undocumented
echo_cli(t:Time)experimental Source: stdlib.ngs:8256
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:7600
Initialize Time object with current time.
init(t:Time, epoch:Int) Source: stdlib.ngs:7605
Initialize Time object with the given epoch time.
init(t:Time, s:Str, format:Str) Source: stdlib.ngs:7609
Undocumented
init(t:Time, s:Str) Source: stdlib.ngs:7617
Parse known date/time formats
Int(t:Time) Source: stdlib.ngs:7654
Undocumented
JsonData(t:Time) Source: stdlib.ngs:7669
Convert Time into JSON compatible data structure - number (epoch seconds)
Str(t:Time, format:Str='%F %T %Z', gmt:Bool=false) Source: stdlib.ngs:7652
String representation of Time

Parameters

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