package
1.0.1
Repository: https://github.com/auxten/postgresql-parser.git
Documentation: pkg.go.dev

# Functions

Add returns the time t+d, using a configurable mode.
AddMicros adds the microsecond delta to the provided time value.
Decode reverses the three integers returned from Encode and produces an equal Duration to the original.
DecodeDuration returns a Duration without rounding nanos.
DiffMicros computes the microsecond difference between two time values.
FromBigInt converts a big.Int number of nanoseconds to a duration.
FromFloat64 converts a float64 number of seconds to a duration.
FromInt64 converts an int64 number of seconds to a duration.
MakeDuration returns a Duration rounded to the nearest microsecond.
Truncate returns a new duration obtained from the first argument by discarding the portions at finer resolution than that given by the second argument.

# Constants

DaysPerMonth is the assumed amount of days in a month.
DaysPerYear is the number of days in a year.
MicrosPerMilli is the amount of microseconds in a millisecond.
MillisPerSec is the amount of seconds in a millisecond.
MonthsPerYear is the amount of months in the year.
SecsPerDay is the amount of seconds in a day.
SecsPerHour is the amount of seconds in an hour.
SecsPerMinute is the amount of seconds in a minute.

# Structs

A Duration represents a length of time.