Enum expr::scalar::func::format::DateTimeToken[][src]

#[repr(u8)]
enum DateTimeToken {
Show 103 variants a_d, A_D, a_m, A_M, ad, AD, am, AM, b_c, B_C, bc, BC, cc, CC, d, D, day, Day, DAY, dd, DD, ddd, DDD, dy, Dy, DY, fm, FM, fx, FX, hh, HH, hh12, HH12, hh24, HH24, i, I, id, ID, iddd, IDDD, iw, IW, iy, IY, iyy, IYY, iyyy, IYYY, j, J, mi, MI, mm, MM, mon, Mon, MON, month, Month, MONTH, ms, MS, OF, p_m, P_M, pm, PM, q, Q, rm, RM, ss, SS, ssss, SSSS, sssss, SSSSS, tz, TZ, TZH, TZM, us, US, w, W, ww, WW, y_yyy, Y_YYY, y, Y, yy, YY, yyy, YYY, yyyy, YYYY, th, TH, EscQuote, Quote,
}
Expand description

The raw tokens that can appear in a format string. Many of these tokens overlap, in which case the longest matching token should be selected.

Variants

a_d

A_D

a_m

A_M

ad

AD

am

AM

b_c

B_C

bc

BC

cc

CC

d

D

day

Day

DAY

dd

DD

ddd

DDD

dy

Dy

DY

fm

FM

fx

FX

hh

HH

hh12

HH12

hh24

HH24

i

I

id

ID

iddd

IDDD

iw

IW

iy

IY

iyy

IYY

iyyy

IYYY

j

J

mi

MI

mm

MM

mon

Mon

MON

month

Month

MONTH

ms

MS

OF

p_m

P_M

pm

PM

q

Q

rm

RM

ss

SS

ssss

SSSS

sssss

SSSSS

tz

TZ

TZH

TZM

us

US

w

W

ww

WW

y_yyy

Y_YYY

y

Y

yy

YY

yyy

YYY

yyyy

YYYY

th

TH

EscQuote

Quote

Implementations

Returns the literal sequence of characters that this DateTimeToken matches.

Returns the list of all known patterns, in the same order as the enum variants.

Returns the DateTimeField associated with this token, if any.

Some tokens do not correspond directly to a field, but instead modify other fields.

Returns how this token should be rendered if it appears within quotes. This is usually the same string as the pattern method returns, but not always.

Returns whether this token is a fill mode toggle.

Returns how this token affects the ordinal mode, if at all.

Trait Implementations

Performs the conversion.

Type of the iterator over the variants.

Number of variants.

Returns an iterator over the variants. Read more

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

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

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.

Should always be Self

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more