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 Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for DateTimeToken
impl Send for DateTimeToken
impl Sync for DateTimeToken
impl Unpin for DateTimeToken
impl UnwindSafe for DateTimeToken
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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