package
0.0.0-20190408051622-ebf3c7b94afd
Repository: https://github.com/m3db/m3x.git
Documentation: pkg.go.dev

# Functions

Ceil returns the result of rounding t up to a multiple of d since the zero time.
DurationFromUnit creates a time duration from a time unit.
FromNanoseconds converts nanoseconds to a time.
FromNormalizedDuration returns the duration given the normalized time duration and a time unit.
FromNormalizedTime returns the time given the normalized time units and the time unit.
FromUnixMillis converts milliseconds since Unix epoch to a time.
MaxTime returns the later one of t1 and t2.
MaxUnitForDuration determines the maximum unit for which the input duration is a multiple of.
MinTime returns the earlier one of t1 and t2.
NewMatcher returns a new Matcher.
NewRanges constructs a new Ranges object comprising the provided ranges.
ParseExtendedDuration parses a duration, with the ability to specify time units in days, weeks, months, and years.
ToExtendedString converts a duration to an extended string.
ToNanoseconds converts a time to nanoseconds.
ToNormalizedDuration returns the normalized units of duration given a time unit.
ToNormalizedTime returns the normalized units of time given a time unit.
ToUnixMillis converts a time to milliseconds since Unix epoch.
ToUnixNano returns a UnixNano from a time.Time.
UnitFromDuration creates a time unit from a time duration.

# Constants

Different time units that are supported.
Different time units that are supported.
Different time units that are supported.
Different time units that are supported.
Different time units that are supported.
Different time units that are supported.
None is a place holder for time units, it doesn't represent an actual time unit.
Different time units that are supported.
Different time units that are supported.

# Structs

Range represents [start, end).
RangeIter iterates over a collection of time ranges.
Ranges is a collection of time ranges.

# Interfaces

Matcher is a gomock.Matcher that matches time.Time.

# Type aliases

Unit represents a time unit.
UnixNano is used to indicate that an int64 stores a unix timestamp at nanosecond resolution.