MDateFormat class
- Available Extensions
Constructors
- MDateFormat([String? newPattern, String? locale])
Properties
- dateOnly → bool
-
Does our format only date fields, and no time fields.
no setterinherited
- dateSymbols → DateSymbols
-
Return the
DateSymbols
information for the locale.no setterinherited - dateTimeConstructor ↔ _DateTimeConstructor
-
Allows specifying a different way of creating a DateTime instance for
testing.
getter/setter pairinherited
- digitMatcher → RegExp
-
A regular expression which matches against digits for this locale.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- locale → String
-
Return the locale code in which we operate, e.g. 'en_US' or 'pt'.
no setterinherited
- localeZero → String
-
For performance, keep the zero digit available.
no setterinherited
- localeZeroCodeUnit → int
-
For performance, keep the code unit of the zero digit available.
no setterinherited
- pattern → String?
-
Return the pattern that we use to format dates.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useNativeDigits ↔ bool
-
Should we use native digits for printing DateTime, or ASCII.
getter/setter pairinherited
- usesAsciiDigits → bool
-
Does this use ASCII digits
no setterinherited
- usesNativeDigits → bool
-
no setterinherited
Methods
-
add_d(
) → DateFormat -
The 'add_*' methods append a particular skeleton to the format, or set
it as the only format if none was previously set. These are primarily
useful for creating compound formats. For example
inherited
-
add_E(
) → DateFormat -
inherited
-
add_EEEE(
) → DateFormat -
inherited
-
add_H(
) → DateFormat -
inherited
-
add_Hm(
) → DateFormat -
inherited
-
add_Hms(
) → DateFormat -
inherited
-
add_j(
) → DateFormat -
inherited
-
add_jm(
) → DateFormat -
inherited
-
add_jms(
) → DateFormat -
inherited
-
add_jmv(
) → DateFormat -
NOT YET IMPLEMENTED.
inherited
-
add_jmz(
) → DateFormat -
NOT YET IMPLEMENTED.
inherited
-
add_jv(
) → DateFormat -
NOT YET IMPLEMENTED.
inherited
-
add_jz(
) → DateFormat -
NOT YET IMPLEMENTED.
inherited
-
add_LLL(
) → DateFormat -
inherited
-
add_LLLL(
) → DateFormat -
inherited
-
add_m(
) → DateFormat -
inherited
-
add_M(
) → DateFormat -
inherited
-
add_Md(
) → DateFormat -
inherited
-
add_MEd(
) → DateFormat -
inherited
-
add_MMM(
) → DateFormat -
inherited
-
add_MMMd(
) → DateFormat -
inherited
-
add_MMMEd(
) → DateFormat -
inherited
-
add_MMMM(
) → DateFormat -
inherited
-
add_MMMMd(
) → DateFormat -
inherited
-
add_MMMMEEEEd(
) → DateFormat -
inherited
-
add_ms(
) → DateFormat -
inherited
-
add_QQQ(
) → DateFormat -
inherited
-
add_QQQQ(
) → DateFormat -
inherited
-
add_s(
) → DateFormat -
inherited
-
add_y(
) → DateFormat -
inherited
-
add_yM(
) → DateFormat -
inherited
-
add_yMd(
) → DateFormat -
inherited
-
add_yMEd(
) → DateFormat -
inherited
-
add_yMMM(
) → DateFormat -
inherited
-
add_yMMMd(
) → DateFormat -
inherited
-
add_yMMMEd(
) → DateFormat -
inherited
-
add_yMMMM(
) → DateFormat -
inherited
-
add_yMMMMd(
) → DateFormat -
inherited
-
add_yMMMMEEEEd(
) → DateFormat -
inherited
-
add_yQQQ(
) → DateFormat -
inherited
-
add_yQQQQ(
) → DateFormat -
inherited
-
addPattern(
String? inputPattern, [String separator = ' ']) → DateFormat -
Add
inputPattern
to this instance as a pattern. -
format(
DateTime date) → String -
Return a string representing
date
formatted according to our locale and internal format.inherited -
formatWith(
Duration duration) → String -
Return a string representing
date
formatted according to our locale and internal format. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String inputString, [bool utc = false]) → DateTime -
Given user input, attempt to parse the
inputString
into the anticipated format, treating it as being in the local timezone.inherited -
parseLoose(
String inputString, [bool utc = false]) → DateTime -
Given user input, attempt to parse the
inputString
'loosely' into the anticipated format, accepting some variations from the strict format.inherited -
parsePattern(
String pattern) → List< _DateFormatField> -
Parse the template pattern and return a list of field objects.
inherited
-
parseStrict(
String inputString, [bool utc = false]) → DateTime -
Given user input, attempt to parse the
inputString
into the anticipated format, treating it as being in the local timezone.inherited -
parseUtc(
String inputString) → DateTime -
Given user input, attempt to parse the
inputString
into the anticipated format, treating it as being in UTC. IfinputString
does not match our format, throws a FormatException.inherited -
parseUTC(
String inputString) → DateTime -
Given user input, attempt to parse the
inputString
into the anticipated format, treating it as being in UTC. IfinputString
does not match our format, throws a FormatException.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
tryParse(
String inputString, [bool utc = false]) → DateTime? -
Given user input, attempt to parse the
inputString
into the anticipated format, treating it as being in the local timezone.inherited -
tryParseLoose(
String inputString, [bool utc = false]) → DateTime? -
Given user input, attempt to parse the
inputString
'loosely' into the anticipated format, accepting some variations from the strict format.inherited -
tryParseStrict(
String inputString, [bool utc = false]) → DateTime? -
Given user input, attempt to parse the
inputString
into the anticipated format, treating it as being in the local timezone.inherited -
tryParseUtc(
String inputString) → DateTime? -
Given user input, attempt to parse the
inputString
into the anticipated format, treating it as being in UTC. IfinputString
does not match our format, returnsnull
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited