# Functions

Add returns the time t+d.
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.
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.
Truncate returns a new duration obtained from the first argument by discarding the portions at finer resolution than that given by the second argument.

# Variables

ErrEncodeOverflow is returned by Encode when the sortNanos returned would have overflowed or underflowed.

# Structs

A Duration represents a length of time.