Module t

Source

Structsยง

Constant ๐Ÿ”’
A constant value for use in arithmetic in this crate.

Constantsยง

DAYS_PER_CIVIL_WEEK ๐Ÿ”’
The number of days in a week.
HOURS_PER_CIVIL_DAY ๐Ÿ”’
The number of whole hours in one day.
MICROS_PER_CIVIL_DAY ๐Ÿ”’
The number of microseconds in a civil day.
MICROS_PER_MILLI ๐Ÿ”’
The number of microseconds in a single millisecond.
MICROS_PER_SECOND ๐Ÿ”’
The number of microseconds in a single second.
MILLIS_PER_CIVIL_DAY ๐Ÿ”’
The number of microseconds in a civil day.
MILLIS_PER_SECOND ๐Ÿ”’
The number of milliseconds in a single second.
MINUTES_PER_CIVIL_DAY ๐Ÿ”’
The number of minutes in a civil day.
MINUTES_PER_HOUR ๐Ÿ”’
The number of minutes in an hour.
MONTHS_PER_YEAR ๐Ÿ”’
The number of months in a year.
NANOS_PER_CIVIL_DAY ๐Ÿ”’
The number of nanoseconds in a civil day.
NANOS_PER_CIVIL_WEEK ๐Ÿ”’
The number of nanoseconds in a civil week.
NANOS_PER_HOUR ๐Ÿ”’
The number of nanoseconds in a single hour.
NANOS_PER_MICRO ๐Ÿ”’
The number of nanoseconds in a single microsecond.
NANOS_PER_MILLI ๐Ÿ”’
The number of nanoseconds in a single millisecond.
NANOS_PER_MINUTE ๐Ÿ”’
The number of nanoseconds in a single minute.
NANOS_PER_SECOND ๐Ÿ”’
The number of nanoseconds in a single second.
SECONDS_PER_CIVIL_DAY ๐Ÿ”’
The number of seconds in a civil day.
SECONDS_PER_CIVIL_WEEK ๐Ÿ”’
The number of seconds in a civil week.
SECONDS_PER_HOUR ๐Ÿ”’
The number of seconds in a single hour.
SECONDS_PER_MINUTE ๐Ÿ”’
The number of seconds in a single minute.
SPAN_CIVIL_SECONDS ๐Ÿ”’
The maximum number of seconds that can be expressed with a span.
SPAN_ZONE_OFFSET_TOTAL_SECONDS ๐Ÿ”’
The max number of seconds that can be expressed in a time zone offset.

Functionsยง

C ๐Ÿ”’
A short-hand creating a generic Constant value as a ranged integer.
C128 ๐Ÿ”’
next_multiple_of ๐Ÿ”’
Computes the next multiple of rhs that is greater than or equal to lhs.
sign ๐Ÿ”’

Type Aliasesยง

CivilDayNanosecond ๐Ÿ”’
A range representing each possible nanosecond in a single civil day.
CivilDaySecond ๐Ÿ”’
A range representing each possible second in a single civil day.
Day ๐Ÿ”’
The range of possible day values.
DayOfYear ๐Ÿ”’
FractionalMicrosecond ๐Ÿ”’
The range of allowable fractional microseconds.
FractionalMillisecond ๐Ÿ”’
The range of allowable fractional milliseconds.
FractionalNanosecond ๐Ÿ”’
The range of allowable fractional nanoseconds.
Hour ๐Ÿ”’
The range of possible hour values.
ISOWeek ๐Ÿ”’
ISOYear ๐Ÿ”’
Microsecond ๐Ÿ”’
The range of possible microsecond values.
Millisecond ๐Ÿ”’
The range of possible millisecond values.
Minute ๐Ÿ”’
The range of possible minute values.
Month ๐Ÿ”’
The range of possible month values.
Nanosecond ๐Ÿ”’
The range of possible nanosecond values.
NoUnits ๐Ÿ”’
A type alias for a ranged integer with no units.
NoUnits16 ๐Ÿ”’
A type alias for a ranged 16-bit integer with no units.
NoUnits32 ๐Ÿ”’
A type alias for a ranged 32-bit integer with no units.
NoUnits96 ๐Ÿ”’
A type alias for a ranged 96-bit integer with no units.
NoUnits128 ๐Ÿ”’
A type alias for a ranged 128-bit integer with no units.
Second ๐Ÿ”’
The range of possible second values not accounting for leap seconds.
Sign ๐Ÿ”’
A type alias for the sign of a number.
SpanDays ๐Ÿ”’
A range of the allowed number of days.
SpanHours ๐Ÿ”’
A range of the allowed number of hours.
SpanMicroseconds ๐Ÿ”’
A range of the allowed number of microseconds.
SpanMilliseconds ๐Ÿ”’
A range of the allowed number of milliseconds.
SpanMinutes ๐Ÿ”’
A range of the allowed number of minutes.
SpanMonths ๐Ÿ”’
A precise min/max of the allowed range of a duration in months.
SpanNanoseconds ๐Ÿ”’
A range of the allowed number of nanoseconds.
SpanSeconds ๐Ÿ”’
A range of the allowed number of seconds.
SpanSecondsOrLower ๐Ÿ”’
The range of allowable seconds and lower in a span, in units of seconds.
SpanSecondsOrLowerNanoseconds ๐Ÿ”’
The range of allowable seconds and lower in a span, in units of nanoseconds.
SpanWeeks ๐Ÿ”’
A range of the allowed number of weeks.
SpanYears ๐Ÿ”’
A precise min/max of the allowed range of a duration in years.
SpanZoneOffset ๐Ÿ”’
The span of seconds permitted for expressing the offset of a time zone.
SpanZoneOffsetHours ๐Ÿ”’
The number of hours allowed in a time zone offset.
SpanZoneOffsetMinutes ๐Ÿ”’
The number of minutes allowed in a time zone offset.
SpanZoneOffsetSeconds ๐Ÿ”’
The number of seconds allowed in a time zone offset.
SubsecNanosecond ๐Ÿ”’
The range of possible nanosecond values.
UnixEpochDay ๐Ÿ”’
The number of days from the Unix epoch for the Gregorian calendar.
UnixMicroseconds ๐Ÿ”’
Like UnixSeconds, but expressed in units of microseconds.
UnixMilliseconds ๐Ÿ”’
Like UnixSeconds, but expressed in units of milliseconds.
UnixNanoseconds ๐Ÿ”’
Like UnixSeconds, but expressed in units of nanoseconds.
UnixSeconds ๐Ÿ”’
The range of Unix seconds supported by Jiff.
WeekNum ๐Ÿ”’
WeekdayOne ๐Ÿ”’
The range of a weekday, offset from one.
WeekdayZero ๐Ÿ”’
The range of a weekday, offset from zero.
Year ๐Ÿ”’
The range of years supported by jiff.
YearBCE ๐Ÿ”’
The range of BCE years supported by jiff.
YearCE ๐Ÿ”’
The range of CE years supported by jiff.
ZonedDayNanoseconds ๐Ÿ”’
The number of nanoseconds permitted in a single day.
ZonedDaySeconds ๐Ÿ”’
The number of seconds permitted in a single day.