FormatterToken enum

Inheritance

Constructors

FormatterToken()
const

Values

M → const FormatterToken

Month

1 2 ... 11 12

Mo → const FormatterToken

Month

1st 2nd ... 11th 12th

Not part of default formatters. Therefore, must be implemented in the localization

MM → const FormatterToken

Month

01 02 ... 11 12

MMM → const FormatterToken

Month

Jan Feb ... Nov Dec

Not part of default formatters. Therefore, must be implemented in the localization

MMMM → const FormatterToken

Month

January February ... November December

Not part of default formatters. Therefore, must be implemented in the localization

Q → const FormatterToken

Quarter

1 2 3 4

Qo → const FormatterToken

Quarter

1st 2nd 3rd 4th

Not part of default formatters. Therefore, must be implemented in the localization

D → const FormatterToken

Day of Month

1 2 ... 30 31

Do → const FormatterToken

Day of Month

1st 2nd ... 30th 31st

Not part of default formatters. Therefore, must be implemented in the localization

DD → const FormatterToken

Day of Month

01 02 ... 30 31

DDD → const FormatterToken

Day of Year

1 2 ... 364 365

DDDo → const FormatterToken

Day of Year

1st 2nd ... 364th 365th

Not part of default formatters. Therefore, must be implemented in the localization

DDDD → const FormatterToken

Day of Year

001 002 ... 364 365

d → const FormatterToken

Day of Week

1 2 ...6 7

Moment.js uses 0-6. However, we'll be using 1-7 to be in accordance with DateTime

d_o → const FormatterToken

Day of Week

1st 2nd ... 6th 7th

Moment.js uses 0-6. However, we'll be using 1-7 to be in accordance with DateTime

Please note that do is dart language keyword

Not part of default formatters. Therefore, must be implemented in the localization

dd → const FormatterToken

Day of Week

Mo Tu ... Sa Su

Not part of default formatters. Therefore, must be implemented in the localization

ddd → const FormatterToken

Day of Week

Mon Tue ... Sat Sun

Not part of default formatters. Therefore, must be implemented in the localization

dddd → const FormatterToken

Day of Week

Monday ... Saturday Sunday

Not part of default formatters. Therefore, must be implemented in the localization

e → const FormatterToken

Day of Week (ISO)

1 2 ... 6 7

Please note that DateTime uses 1-7 as weekday (in accordance with ISO), therefore, we'll be following the path.

w → const FormatterToken

Week of Year (ISO)

1 2 ... 52 53

wo → const FormatterToken

Week of Year (ISO)

1st 2nd ... 52nd 53rd

Not part of default formatters. Therefore, must be implemented in the localization

ww → const FormatterToken

Week of Year (ISO)

01 02 ... 52 53

YY → const FormatterToken

Year

1968 1969 70 71 ... 29 30 2031 2032

If year doesn't belong in range (1970, 2030), displays full YYYY

YYYY → const FormatterToken

Year

1970 1971 ... 2029 2030

DateTime complies ISO 8601 standard, therefore Moment.js's YYYYYY, Y are redundant

y → const FormatterToken

Era Year

1 2 ... 2020 ...

Unimplemented by default

NN → const FormatterToken

Era

BC AD

Note: Abbr era name

NNNN → const FormatterToken

Era

Before Christ, Anno Domini

Note: Full era name

NNNNN → const FormatterToken

Era

BC AD

Note: Narrow era name

gg → const FormatterToken

Week Year

70 71 ... 29 30

gggg → const FormatterToken

Week Year

1970 1971 ... 2029 2030

A → const FormatterToken

AM/PM

AM PM (uppercase)

Not part of default formatters. Therefore, must be implemented in the localization

a → const FormatterToken

AM/PM

am pm (lowercase)

Not part of default formatters. Therefore, must be implemented in the localization

H → const FormatterToken

Hour

0 1 ... 22 23

HH → const FormatterToken

Hour

00 01 ... 22 23

h → const FormatterToken

Hour

1 2 ... 11 12

hh → const FormatterToken

Hour

01 02 ... 11 12

k → const FormatterToken

Hour

1 2 ... 23 24

kk → const FormatterToken

Hour

01 02 ... 23 24

m → const FormatterToken

Minute

0 1 ... 58 59

mm → const FormatterToken

Minute

00 01 ... 58 59

s → const FormatterToken

Second

0 1 ... 58 59

ss → const FormatterToken

Second

00 01 ... 58 59

S → const FormatterToken

Fractional Second

0 1 ... 8 9

SS → const FormatterToken

Fractional Second

00 01 ... 98 99

SSS → const FormatterToken

Fractional Second (Millisecond)

000 001 ... 998 999

SSSS → const FormatterToken

Fractional Second

0000 0001 ... 9998,9999

SSSSS → const FormatterToken

Fractional Second

00000 00001 ... 99998,99999

SSSSSS → const FormatterToken

Fractional Second (Microsecond)

000000 000001 ... 999998,999999

Z → const FormatterToken

Timezone

-07:00 -06:00 ... +06:00 +07:00

ZZ → const FormatterToken

Timezone

-0700 -0600 ... +0600 +0700

ZZZ → const FormatterToken

Timezone Name

Returns DateTime.timeZoneName, result may not be consistent across platforms

X → const FormatterToken

Unix timestamp (seconds)

x → const FormatterToken

Unix millisecond timestamp

xx → const FormatterToken

Unix microsecond timestamp

l → const FormatterToken

Date (in local format)

(no zero padding)

9/4/1986

L → const FormatterToken

Date (in local format)

(zero-padded)

09/04/1986

ll → const FormatterToken

Month name, day of month, year

(no zero padding)

Sep 4 1986

LL → const FormatterToken

Month name, day of month, year

(zero-padded)

September 04 1986

lll → const FormatterToken

Month name, day of month, year, time

(no zero padding)

Sep 4 1986 8:30 PM

LLL → const FormatterToken

Month name, day of month, year, time

(zero-padded)

September 04 1986 08:30 PM

llll → const FormatterToken

Day of week, month name, day of month, year, time

(no zero padding)

Thu, Sep 4 1986 8:30 PM

LLLL → const FormatterToken

Day of week, month name, day of month, year, time

(zero-padded)

Thursday, September 04 1986 08:30 PM

LT → const FormatterToken

Time (without seconds)

8:30 PM

LTS → const FormatterToken

Time (with seconds)

8:30:00 PM

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<FormatterToken>
A constant List of the values in this enum, in order of their declaration.