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
amountday for the corresponding locale. The unit is abbreviated ifabbreviatedis set to true. -
hour(
int amount, [bool abbreviated = true]) → String -
Print
amounthour for the corresponding locale. The unit is abbreviated ifabbreviatedis set to true. -
inUnit(
DurationTersity unit, int amount, [bool abbreviated = true]) → String -
microseconds(
int amount, [bool abbreviated = true]) → String -
Print
amountmicroseconds for the corresponding locale. The unit is abbreviated ifabbreviatedis set to true. -
millisecond(
int amount, [bool abbreviated = true]) → String -
Print
amountmillisecond for the corresponding locale. The unit is abbreviated ifabbreviatedis set to true. -
minute(
int amount, [bool abbreviated = true]) → String -
Print
amountminute for the corresponding locale. The unit is abbreviated ifabbreviatedis set to true. -
month(
int amount, [bool abbreviated = true]) → String -
Print
amountmonth for the corresponding locale. The unit is abbreviated ifabbreviatedis 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
amountsecond for the corresponding locale. The unit is abbreviated ifabbreviatedis set to true. -
toString(
) → String -
A string representation of this object.
inherited
-
week(
int amount, [bool abbreviated = true]) → String -
Print
amountweek for the corresponding locale. The unit is abbreviated ifabbreviatedis set to true. -
year(
int amount, [bool abbreviated = true]) → String -
Print
amountyears for the corresponding locale. The unit is abbreviated ifabbreviatedis set to true.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromLanguageCode(
String languageCode) → DurationLocale?