Versions in this module Expand all Collapse all v0 v0.0.2 Sep 13, 2023 Changes in this version type Duration + func (d Duration) Minutes() float64 v0.0.1 Sep 10, 2023 Changes in this version + var ErrTooBig = errors.New("interval overflows time.Duration") + type Duration time.Duration + func (d *Duration) Scan(src interface{}) error + func (d *Duration) UnmarshalJSON(b []byte) error + func (d Duration) MarshalJSON() ([]byte, error) + func (d Duration) Milliseconds() float64 + func (d Duration) Value() (driver.Value, error) + type Interval struct + func New(years, days, hours, minutes, seconds, microseconds int) Interval + func (ival *Interval) Scan(src interface{}) error + func (ival Interval) Duration() (time.Duration, error) + func (ival Interval) Hours() int32 + func (ival Interval) Microseconds() int64 + func (ival Interval) Value() (driver.Value, error) + func (ival Interval) Years() int32 + type NullDuration struct + Valid bool + func NewNullDuration(d Duration, valid bool) NullDuration + func (nd *NullDuration) Scan(src interface{}) error + func (nd *NullDuration) UnmarshalJSON(b []byte) error + func (nd NullDuration) MarshalJSON() ([]byte, error) + func (nd NullDuration) Milliseconds() float64 + func (nd NullDuration) Value() (driver.Value, error) + type NullInterval struct + Valid bool + func (nival *NullInterval) Scan(src interface{}) error + func (nival NullInterval) Value() (driver.Value, error) + type ParseErr struct + Cause error + String string + func (pe ParseErr) Error() string