Expand description
Wall-clock time helpers.
The current_* functions query std::time::SystemTime::now and return the
elapsed duration since the Unix epoch in the requested unit. The remaining
helpers format, parse and align timestamps in the local time zone, following
the Java broker’s formats.
Constants§
- YYYYMMDDHHMMSS
- The yyyymmddhhmmss constant.
- YYYY_
MM_ DD_ HH_ MM_ SS_ SSS - The yyyy mm dd hh mm ss sss constant.
Functions§
- compute_
next_ minutes_ time_ millis - Executes compute next minutes time millis.
- compute_
next_ morning_ time_ millis - Executes compute next morning time millis.
- current_
millis - Returns the current Unix timestamp in milliseconds.
- current_
nano - Returns the current Unix timestamp in nanoseconds.
- current_
secs - Returns the current Unix timestamp in whole seconds.
- is_
it_ time_ to_ do - Returns whether the current local hour is one of the
;-separated hours inwhen, such as adeleteWhensetting of"04;16". - parse_
date - Parses date.
- parse_
date_ to_ millis - Parses date to millis.
- time_
millis_ to_ human_ string - Converts a timestamp in milliseconds to a human-readable string format.
- time_
millis_ to_ human_ string2 - Converts a timestamp in milliseconds to a human-readable string format.
- time_
millis_ to_ human_ string3 - Converts a timestamp in milliseconds to a compact human-readable string format.