Versions in this module Expand all Collapse all v1 v1.0.1 May 18, 2017 Changes in this version + var ErrEncodeOverflow = errors.New("overflow during Encode") + func Add(t time.Time, d Duration) time.Time + func AddMicros(t time.Time, d int64) time.Time + func DiffMicros(t1, t2 time.Time) int64 + type Duration struct + Days int64 + Months int64 + Nanos int64 + func Decode(sortNanos int64, months int64, days int64) (Duration, error) + func (d Duration) Add(x Duration) Duration + func (d Duration) Compare(x Duration) int + func (d Duration) Div(x int64) Duration + func (d Duration) DivFloat(x float64) Duration + func (d Duration) Encode() (sortNanos int64, months int64, days int64, err error) + func (d Duration) EncodeBigInt() (sortNanos *big.Int, months int64, days int64) + func (d Duration) Format(buf *bytes.Buffer) + func (d Duration) Mul(x int64) Duration + func (d Duration) MulFloat(x float64) Duration + func (d Duration) String() string + func (d Duration) Sub(x Duration) Duration