Uses of Interface
net.time4j.format.TemporalFormatter
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Defines common interfaces for any format support of Time4J.
This package contains the expert-level format- and parse engine of Time4J.
Temporal formatters which access the platform specific resources.
-
Uses of TemporalFormatter in net.time4j
Modifier and TypeMethodDescriptionstatic Moment
Moment.parse(String text, TemporalFormatter<Moment> parser)
Parses given text to an instance of this class.static PlainDate
PlainDate.parse(String text, TemporalFormatter<PlainDate> parser)
Parses given text to an instance of this class.static PlainTime
PlainTime.parse(String text, TemporalFormatter<PlainTime> parser)
Parses given text to an instance of this class.static PlainTimestamp
PlainTimestamp.parse(String text, TemporalFormatter<PlainTimestamp> parser)
Parses given text to an instance of this class.static ZonalDateTime
ZonalDateTime.parse(String text, TemporalFormatter<Moment> parser)
Parses given text to aZonalDateTime
.Moment.print(TemporalFormatter<Moment> printer)
Creates a formatted output of this instance.PlainDate.print(TemporalFormatter<PlainDate> printer)
Creates a formatted output of this instance.PlainTime.print(TemporalFormatter<PlainTime> printer)
Creates a formatted output of this instance.PlainTimestamp.print(TemporalFormatter<PlainTimestamp> printer)
Creates a formatted output of this instance.ZonalDateTime.print(TemporalFormatter<Moment> printer)
Creates a formatted output of this instance.PrettyTime.printRelativeOrDate(PlainDate date, TZID tzid, CalendarUnit maxRelativeUnit, TemporalFormatter<PlainDate> formatter)
Formats given date relative to the current date ofPrettyTime.getReferenceClock()
as duration or as absolute date.PrettyTime.printRelativeOrDateTime(UnixTime moment, Timezone tz, TimeUnit precision, long maxdelta, TemporalFormatter<Moment> formatter)
Formats given time point relative to the current time ofPrettyTime.getReferenceClock()
as duration in given precision or as absolute date-time.PrettyTime.printRelativeOrDateTime(UnixTime moment, Timezone tz, TimeUnit precision, CalendarUnit maxRelativeUnit, TemporalFormatter<Moment> formatter)
Formats given time point relative to the current time ofPrettyTime.getReferenceClock()
as duration in given precision or as absolute date-time. -
Uses of TemporalFormatter in net.time4j.format
Modifier and TypeMethodDescriptionCreates a copy of this formatter with given locale.Sets the leniency mode.TemporalFormatter.withTimezone(String tzid)
Equivalent towithTimezone(Timezone.of(tzid).getID())
.TemporalFormatter.withTimezone(TZID tzid)
Creates a copy of this formatter with given timezone id which shall be used in formatting or parsing. -
Uses of TemporalFormatter in net.time4j.format.expert
Modifier and TypeClassDescriptionclass
Represents a chronological format for the conversion between a chronological text and the chronological value of type T. -
Uses of TemporalFormatter in net.time4j.format.platform
Modifier and TypeClassDescriptionclass
A temporal formatter which uses platform specific resources based onSimpleDateFormat
.Modifier and TypeMethodDescriptionSimpleFormatter.withTimezone(String tzid)
SimpleFormatter.withTimezone(TZID tzid)