package
19.1.0-beta.20190304+incompatible
Repository: https://github.com/darinpp/cockroach.git
Documentation: pkg.go.dev

# Packages

Package pgdate contains library functions for parsing dates and times in a manner that is compatible with PostgreSQL.

# Functions

FixedOffsetTimeZoneToLocation creates a time.Location with a set offset and with a name that can be marshaled by crdb between nodes.
FromUnixMicros returns the UTC time.Time corresponding to the given Unix time, usec microseconds since UnixEpoch.
LoadLocation returns the time.Location with the given name.
NewTimer allocates a new timer.
Now returns the current UTC time.
ParseFixedOffsetTimeZone takes the string representation of a time.Location created by FixedOffsetTimeZoneToLocation and parses it to the offset and the original representation specified by the user.
Since returns the time elapsed since t.
SleepUntil sleeps until the given time.
TimeZoneStringToLocation transforms a string into a time.Location.
ToUnixMicros returns t as the number of microseconds elapsed since UnixEpoch.
Unix wraps time.Unix ensuring that the result is in UTC instead of Local.

# Constants

ClocklessMaxOffset is a special-cased value that is used when the cluster runs in "clockless" mode.

# Variables

UnixEpoch represents the Unix epoch, January 1, 1970 UTC.

# Structs

The Timer type represents a single event.