Return the current time as Time object.
time:(year, month = 1, day = 1, hour = 0, minute = 0, Float second = 0)
Constructs a Time object from specified arguments.
Return seconds since the epoch as a floating point number.
Return a string representing the time, controlled by an explicit format string. For a complete list of formatting directives, see https://en.cppreference.com/w/c/chrono/strftime.
strftime(), but format is much simpler:
time:delta(days, hours = 0, minutes = 0, seconds = 0, milliseconds = 0, microseconds = 0, weeks = 0)
Return Delta object.
secondsThe following operators are supported:
Number of seconds.
Number of days.
Time - Time -> Delta Time + Delta -> Time Time - Delta -> Time
Return the current time as
time:(current_year, current_month, current_day).
Return a Time object corresponding to the POSIX timestamp (i.e. seconds since the epoch).
time:strptime(string, format) -> Time
Parse a string representing a time according to a format.
formatparameter uses the same directives as those used by
Return the value of a performance counter, i.e. a clock with the highest available resolution to measure a short duration.
It can be used as follows:
V start = time:perf_counter() ... print(‘Elapsed: ’(time:perf_counter() - start)‘ seconds’)