Enum pact_models::time_utils::DateTimePatternToken[][src]

pub enum DateTimePatternToken {
Show 30 variants Era(usize), Year(usize), Month(usize), MonthNum(usize), Text(String), WeekInYear, WeekInMonth(bool), DayInYear, DayInMonth, DayName(usize), DayOfWeek(usize), AmPm, Hour24, Hour24ZeroBased, Hour12, Hour12ZeroBased, Minute, Second, Millisecond(usize), Nanosecond(usize), TimezoneOffset(usize), TimezoneOffsetX(usize), TimezoneOffsetXZZero(usize), TimezoneOffsetGmt(usize), TimezoneName(usize), TimezoneId(usize), QuarterOfYear(usize), QuarterOfYearNum(usize), MillisecondOfDay, NanosecondOfDay,
}
Expand description

Tokens for DateTime patterns

Variants

Era(usize)

Tuple Fields of Era

0: usize
Year(usize)

Tuple Fields of Year

0: usize
Month(usize)

Tuple Fields of Month

0: usize
MonthNum(usize)

Tuple Fields of MonthNum

0: usize
Text(String)

Tuple Fields of Text

0: String
WeekInYear
WeekInMonth(bool)

Tuple Fields of WeekInMonth

0: bool
DayInYear
DayInMonth
DayName(usize)

Tuple Fields of DayName

0: usize
DayOfWeek(usize)

Tuple Fields of DayOfWeek

0: usize
AmPm
Hour24
Hour24ZeroBased
Hour12
Hour12ZeroBased
Minute
Second
Millisecond(usize)

Tuple Fields of Millisecond

0: usize
Nanosecond(usize)

Tuple Fields of Nanosecond

0: usize
TimezoneOffset(usize)

Tuple Fields of TimezoneOffset

0: usize
TimezoneOffsetX(usize)

Tuple Fields of TimezoneOffsetX

0: usize
TimezoneOffsetXZZero(usize)

Tuple Fields of TimezoneOffsetXZZero

0: usize
TimezoneOffsetGmt(usize)

Tuple Fields of TimezoneOffsetGmt

0: usize
TimezoneName(usize)

Tuple Fields of TimezoneName

0: usize
TimezoneId(usize)

Tuple Fields of TimezoneId

0: usize
QuarterOfYear(usize)

Tuple Fields of QuarterOfYear

0: usize
QuarterOfYearNum(usize)

Tuple Fields of QuarterOfYearNum

0: usize
MillisecondOfDay
NanosecondOfDay

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.