# Functions
DaysLeftInPeriod is used for prorated billing.
Floor truncates ts to the given period.
FromUnixMilli converts milliseconds since 1970 to a time.Time.
Last returns the floor of the last multiple of the given period of ts.
NewFixedOffsetPeriod creates a FixedOffsetPeriod.
Next rounds ts up to the next multiple of the given period.
Parse makes a best effort to parse val as a time.Time.
PeriodFromByte is the reverse of Period.Byte().
PeriodFromString does a best attempt at parsing string as a period.
ToBytes returns the time.Time in a binary representation.
TotalDaysInPeriod is used for prorated billing.
UnixMilli converts t to milliseconds since 1970.
# Constants
PeriodDay represents days as a Period.
PeriodHour represents hours as a Period.
PeriodMinute represents minutes as a Period.
PeriodMonth represents months as a Period.
PeriodNone represents no period.
PeriodYear represents years as a Period.
# Structs
FixedOffsetPeriod is a fixed-duration period with a custom epoch.
# Type aliases
Period represents a unit of time.