OffsetDateTimePattern class
Represents a pattern for parsing and formatting OffsetDateTime values.
- Implemented types
- Annotations
-
- @immutable
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- patternText → String
-
Gets the pattern text for this pattern, as supplied on creation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- templateValue → OffsetDateTime
-
Gets the value used as a template for parsing: any field values unspecified
in the pattern are taken from the template.
final
Methods
-
appendFormat(
OffsetDateTime value, StringBuffer builder) → StringBuffer -
Formats the given value as text according to the rules of this pattern,
appending to the given
StringBuilder
.override -
format(
OffsetDateTime value) → String -
Formats the given zoned date/time as text according to the rules of this pattern.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String text) → ParseResult< OffsetDateTime> -
Parses the given text value according to the rules of this pattern.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
withCalendar(
CalendarSystem calendar) → OffsetDateTimePattern - Creates a pattern like this one, but with the template value modified to use the specified calendar system.
-
withCulture(
Culture culture) → OffsetDateTimePattern - Creates a pattern for the same original pattern text as this pattern, but with the specified culture.
-
withPatternText(
String patternText) → OffsetDateTimePattern - Creates a pattern for the same original localization information as this pattern, but with the specified pattern text.
-
withTemplateValue(
OffsetDateTime newTemplateValue) → OffsetDateTimePattern - Creates a pattern for the same original pattern text and culture as this pattern, but with the specified template value.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- extendedIso → OffsetDateTimePattern
-
Gets an invariant offset date/time pattern based on ISO-8601 (down to the nanosecond), including offset from UTC.
no setter
- fullRoundtrip → OffsetDateTimePattern
-
Gets an invariant offset date/time pattern based on ISO-8601 (down to the nanosecond)
including offset from UTC and calendar ID.
no setter
- generalIso → OffsetDateTimePattern
-
Gets an invariant offset date/time pattern based on ISO-8601 (down to the second), including offset from UTC.
no setter
- rfc3339 → OffsetDateTimePattern
-
Gets an invariant offset date/time pattern based on RFC 3339 (down to the nanosecond), including offset from UTC
as hours and minutes only.
no setter
Static Methods
-
createWithCulture(
String patternText, Culture culture, OffsetDateTime templateValue) → OffsetDateTimePattern - Creates a pattern for the given pattern text, culture, and template value.
-
createWithCurrentCulture(
String patternText) → OffsetDateTimePattern - Creates a pattern for the given pattern text in the current culture, using the default template value of midnight January 1st 2000 at an offset of 0.
-
createWithInvariantCulture(
String patternText) → OffsetDateTimePattern - Creates a pattern for the given pattern text in the invariant culture, using the default template value of midnight January 1st 2000 at an offset of 0.