# Packages
Package pgdate contains parsing functions and types for 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.
NewStopWatch creates a new StopWatch.
NewTestStopWatch create a new StopWatch with the given time source.
NewTestTimeSource create a new TestTimeSource.
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.
ReplaceLibPQTimePrefix replaces unparsable lib/pq dates used for timestamps (0000-01-01) with timestamps that can be parsed by date libraries.
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.
Until returns the duration until t.
# Constants
LibPQTimePrefix is the prefix lib/pq prints time-type datatypes with.
TimeZoneStringToLocationISO8601Standard parses int UTC offsets as *east* of the GMT line, e.g.
TimeZoneStringToLocationPOSIXStandard parses int UTC offsets as *west* of the GMT line, e.g.
# Variables
UnixEpoch represents the Unix epoch, January 1, 1970 UTC.
# Structs
StopWatch is a utility stop watch that can be safely started and stopped multiple times and can be used concurrently.
TestTimeSource is a source of time that remembers when it was created (in terms of the real time) and returns the time based on its creation time and the number of "advances" it has had.
The Timer type represents a single event.
# Type aliases
TimeZoneStringToLocationStandard is an option for the standard to use for parsing in TimeZoneStringToLocation.