OffsetTimePattern class

Represents a pattern for parsing and formatting OffsetTime 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 OffsetTime
Gets the value used as a template for parsing: any field values unspecified in the pattern are taken from the template.
final

Methods

appendFormat(OffsetTime value, StringBuffer builder) StringBuffer
Formats the given value as text according to the rules of this pattern, appending to the given StringBuilder.
override
format(OffsetTime value) String
Formats the given zoned 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<OffsetTime>
Parses the given text value according to the rules of this pattern.
override
toString() String
A string representation of this object.
inherited
withCulture(Culture culture) OffsetTimePattern
Creates a pattern for the same original pattern text as this pattern, but with the specified culture.
withPatternText(String patternText) OffsetTimePattern
Creates a pattern for the same original localization information as this pattern, but with the specified pattern text.
withTemplateValue(OffsetTime newTemplateValue) OffsetTimePattern
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 OffsetTimePattern
Gets an invariant offset time pattern based on ISO-8601 (down to the nanosecond), including offset from UTC.
no setter
generalIso OffsetTimePattern
Gets an invariant offset time pattern based on ISO-8601 (down to the second), including offset from UTC.
no setter
rfc3339 OffsetTimePattern
Gets an invariant offset 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, OffsetTime templateValue) OffsetTimePattern
Creates a pattern for the given pattern text, culture, and template value.
createWithCurrentCulture(String patternText) OffsetTimePattern
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) OffsetTimePattern
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.