DurationLocale class abstract
Interface to print time units for different locale
- Implementers
- ArabicDurationLocale
- ChineseSimplifiedDurationLocale
- ChineseTraditionalDurationLocale
- CzechDurationLocale
- DutchDurationLocale
- EnglishDurationLocale
- FinnishDurationLocale
- FrenchDurationLocale
- GermanDurationLocale
- GreekDurationLocale
- HebrewDurationLocale
- IndonesianDurationLocale
- ItalianDurationLocale
- JapaneseDurationLocale
- KoreanDurationLocale
- NorwegianDurationLanguage
- PolishDurationLocale
- PortugueseBRDurationLanguage
- RomanianDurationLocale
- RussianDurationLanguage
- SpanishDurationLanguage
- SwedishDurationLanguage
- ThaiDurationLocale
- TurkishDurationLocale
- UkrainianDurationLocale
- VietnameseDurationLocale
Constructors
- DurationLocale()
-
const
Properties
- defaultSpacer → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
day(
int amount, [bool abbreviated = true]) → String -
Print
amount
day for the corresponding locale. The unit is abbreviated ifabbreviated
is set to true. -
hour(
int amount, [bool abbreviated = true]) → String -
Print
amount
hour for the corresponding locale. The unit is abbreviated ifabbreviated
is set to true. -
inUnit(
DurationTersity unit, int amount, [bool abbreviated = true]) → String -
microseconds(
int amount, [bool abbreviated = true]) → String -
Print
amount
microseconds for the corresponding locale. The unit is abbreviated ifabbreviated
is set to true. -
millisecond(
int amount, [bool abbreviated = true]) → String -
Print
amount
millisecond for the corresponding locale. The unit is abbreviated ifabbreviated
is set to true. -
minute(
int amount, [bool abbreviated = true]) → String -
Print
amount
minute for the corresponding locale. The unit is abbreviated ifabbreviated
is set to true. -
month(
int amount, [bool abbreviated = true]) → String -
Print
amount
month for the corresponding locale. The unit is abbreviated ifabbreviated
is set to true. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
second(
int amount, [bool abbreviated = true]) → String -
Print
amount
second for the corresponding locale. The unit is abbreviated ifabbreviated
is set to true. -
toString(
) → String -
A string representation of this object.
inherited
-
week(
int amount, [bool abbreviated = true]) → String -
Print
amount
week for the corresponding locale. The unit is abbreviated ifabbreviated
is set to true. -
year(
int amount, [bool abbreviated = true]) → String -
Print
amount
years for the corresponding locale. The unit is abbreviated ifabbreviated
is set to true.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromLanguageCode(
String languageCode) → DurationLocale?