DateTimeConstants class

Constants and translations for date/time formatting

Constructors

DateTimeConstants()

Properties

hashCode int
The hash code for this object.
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

Static Properties

dayNames Map<String, List<String>>
final
dayNamesShort Map<String, List<String>>
final
monthNames Map<String, List<String>>
final
monthNamesShort Map<String, List<String>>
final

Static Methods

getLanguageCode(String locale) String
getOrdinalSuffix(int number) String
getRelativeTimeTranslations(String locale) Map<String, String>
pad(int value, [int width = 2]) String
pluralize(int count, String? singular, String? plural) String

Constants

patternEuDate → const String
patternFileName → const String
patternIso8601 → const String
Common date format patterns
patternIso8601Time → const String
patternTime24 → const String
patternTime24Seconds → const String
patternUsDate → const String