Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Now ¶
Now returns the current local time with an optional offset specified by the environment. The offset functionality is guarded by the "clockoffset" build tag - if built with that tag, the clock offset is parsed from the "COCKROACH_SIMULATED_OFFSET" environment variable using time.ParseDuration, which supports quasi-human values like "1h" or "1m". Additionally, the time is checked to be monotonic (no backward jumps in time) unless COCKROACH_ENABLE_CHECK_MONOTONIC_TIME is set to 0.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.