nitrogen

An interpreted programming language written in Go.


Project maintained by nitrogen-lang Hosted on GitHub Pages — Theme by mattgraham

time.ni

The time modules provide access to system time.

To use: import 'std/time'

now(): Time

now returns an instance of time which represents the clock time.

now_unix(): int

now_unix returns the current Unix epoch time in seconds.

now_ms(): int

now_ms returns the current Unix epoch time in milliseconds.

now_ns(): int

now_ns returns the current Unix epoch time in nanoseconds.

class Time()

Time represents an instance of clock time. There are no public fields.