Uses of Class
net.time4j.PlainTime
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Support for various regional calendars.
Contains classes related to calendrical astronomy.
Support for the Badi calendar.
Support for the French revolutionary calendar.
Support for the traditional Hindu calendar family.
This package contains the expert-level format- and parse engine of Time4J.
Temporal formatters which access the platform specific resources.
Interval support.
Bridge to JDBC.
Permits the construction of historized or rule-based timezones.
Bridge to XML.
-
Uses of PlainTime in net.time4j
Modifier and TypeFieldDescriptionstatic AdjustableElement<Integer,PlainTime>
PlainTime.CLOCK_HOUR_OF_AMPM
Element with the hour of half day in the value range1-12
(dial on an analogue watch).static AdjustableElement<Integer,PlainTime>
PlainTime.CLOCK_HOUR_OF_DAY
Element with the hour in the value range1-24
(analogue display).static ProportionalElement<Integer,PlainTime>
PlainTime.DIGITAL_HOUR_OF_AMPM
Element with the digital hour of half day in the value range0-11
.static ProportionalElement<Integer,PlainTime>
PlainTime.DIGITAL_HOUR_OF_DAY
Element with the digital hour in the value range0-23
.static ProportionalElement<Integer,PlainTime>
PlainTime.HOUR_FROM_0_TO_24
Element with the full hour of day in the value range0-24
.static TemporalType<LocalTime,PlainTime>
TemporalType.LOCAL_TIME
Bridge between the JSR-310-classjava.time.LocalTime
and the classPlainTime
.static ProportionalElement<Long,PlainTime>
PlainTime.MICRO_OF_DAY
Element with the day time in microseconds in the value range0-86400000000
.static ProportionalElement<Integer,PlainTime>
PlainTime.MICRO_OF_SECOND
Element with the microsecond in the value range0-999999
.static ProportionalElement<Integer,PlainTime>
PlainTime.MILLI_OF_DAY
Element with the day time in milliseconds in the value range0-86400000
.static ProportionalElement<Integer,PlainTime>
PlainTime.MILLI_OF_SECOND
Element with the millisecond in the value range0-999
.static ProportionalElement<Integer,PlainTime>
PlainTime.MINUTE_OF_DAY
Element with the minute of day in the value range0-1440
.static ProportionalElement<Integer,PlainTime>
PlainTime.MINUTE_OF_HOUR
Element with the minute of hour in the value range0-59
.static ProportionalElement<Long,PlainTime>
PlainTime.NANO_OF_DAY
Element with the day time in nanoseconds in the value range0-86400000000000
.static ProportionalElement<Integer,PlainTime>
PlainTime.NANO_OF_SECOND
Element with the nanosecond in the value range0-999999999
.static ProportionalElement<Integer,PlainTime>
PlainTime.SECOND_OF_DAY
Element with the second of day in the value range0-86400
.static ProportionalElement<Integer,PlainTime>
PlainTime.SECOND_OF_MINUTE
Element with the second of minute in the value range0-59
.Modifier and TypeMethodDescriptionstatic PlainTime
Short cut forTemporalType.LOCAL_TIME.translate(time)
.static PlainTime
Common conversion method.Determines the end of the day period which covers given clock time.Determines the start of the day period which covers given clock time.DayCycles.getWallTime()
Gets the rolled wall time.PlainTimestamp.getWallTime()
Provides the wall time part.static PlainTime
PlainTime.midnightAtEndOfDay()
Yields midnight at the end of the day, that is midnight at the start of the following day.static PlainTime
PlainTime.midnightAtStartOfDay()
Yields midnight at the start of the day.Subtracts given amount in units from this clock time and yields the result of subtraction.static PlainTime
PlainTime.nowInSystemTime()
Obtains the current clock time in system time.static PlainTime
PlainTime.of(int hour)
Creates a wall time as full hour.static PlainTime
PlainTime.of(int hour, int minute)
Creates a wall time with hour and minute.static PlainTime
PlainTime.of(int hour, int minute, int second)
Creates a wall time with hour, minute and second.static PlainTime
PlainTime.of(int hour, int minute, int second, int nanosecond)
Creates a wall time with hour, minute, second and nanosecond.static PlainTime
PlainTime.of(BigDecimal decimal)
Creates a wall time by given decimal hour.static PlainTime
PlainTime.parse(String text, TemporalFormatter<PlainTime> parser)
Parses given text to an instance of this class.Adds given amount in units to this clock time and yields the result of addition.GeneralTimestamp.toTime()
Yields the time component.PlainTimestamp.toTime()
Synonym forgetWallTime()
.Modifier and TypeMethodDescriptionstatic TimeAxis<IsoTimeUnit,PlainTime>
PlainTime.axis()
Provides a static access to the associated time axis respective chronology which contains the chronological rules.WallTimeElement.roundedToFullHour()
Performs rounding to full hour in half rounding mode.WallTimeElement.roundedToFullMinute()
Performs rounding to full minute in half rounding mode.WallTimeElement.setToNextFullHour()
Adjusts to next full hour.WallTimeElement.setToNextFullMinute()
Adjusts to next full minute.Modifier and TypeMethodDescriptionCreates a new local timestamp with this date and given wall time.int
Defines a natural order which is solely based on the timeline order.Determines the end of the day period which covers given clock time.Determines the start of the day period which covers given clock time.boolean
boolean
boolean
PlainTime.isSimultaneous(PlainTime time)
static <C extends CalendarVariant<C>>
GeneralTimestamp<C>Creates a new timestamp consisting of a calendar variant and a time component.static <C extends Calendrical<?, C>>
GeneralTimestamp<C>Creates a new timestamp consisting of a general date and a time component.static PlainTimestamp
Creates a new local timestamp with calendar date and wall time.Moves a timestamp to the next given wall time and change the day if necessary.WallTimeElement.setToNextOrSame(PlainTime value)
Moves a timestamp to the next or same given wall time and change the day if necessary.WallTimeElement.setToPrevious(PlainTime value)
Moves a timestamp to the previous given wall time and change the day backwards if necessary.WallTimeElement.setToPreviousOrSame(PlainTime value)
Moves a timestamp to the previous or same given wall time and change the day backwards if necessary.Adjusts the wall time part of this timestamp.Modifier and TypeMethodDescriptionstatic DayPeriod
Creates an instance based on user-defined data.static PlainTime
PlainTime.parse(String text, TemporalFormatter<PlainTime> parser)
Parses given text to an instance of this class.PlainTime.print(TemporalFormatter<PlainTime> printer)
Creates a formatted output of this instance. -
Uses of PlainTime in net.time4j.calendar
Modifier and TypeFieldDescriptionstatic ChronoElement<PlainTime>
EthiopianTime.ISO_TIME
Behaves likeCOMPONENT
and serves for conversion.Modifier and TypeMethodDescriptionEthiopianTime.toISO()
Converts this instance to its ISO-analogy.Modifier and TypeMethodDescriptionCreates a new local timestamp with this date and given wall time.Creates a new local timestamp with this date and given wall time.Creates a new local timestamp with this date and given civil time.Creates a new local timestamp with this date and given wall time.Creates a new local timestamp with this date and given wall time.Creates a new local timestamp with this date and given wall time.Creates a new local timestamp with this date and given wall time.Creates a new local timestamp with this date and given wall time.Creates a new local timestamp with this date and given wall time.Creates a new local timestamp with this date and given wall time.Creates a new local timestamp with this date and given wall time.Creates a new local timestamp with this date and given wall time.static EthiopianTime
Converts given ISO-time to Ethiopian time. -
Uses of PlainTime in net.time4j.calendar.astro
Modifier and TypeMethodDescriptionstatic JulianDay
JulianDay.ofEphemerisTime(CalendarDate date, PlainTime time, ZonalOffset offset)
Creates a Julian day on the time scaleTimeScale.TT
, sometimes also called Julian Ephemeris Day. -
Uses of PlainTime in net.time4j.calendar.bahai
Modifier and TypeMethodDescriptionCreates a new local timestamp with this date and given wall time. -
Uses of PlainTime in net.time4j.calendar.frenchrev
Modifier and TypeMethodDescriptionCreates a new local timestamp with this date and given wall time. -
Uses of PlainTime in net.time4j.calendar.hindu
Modifier and TypeMethodDescriptionCreates a new local timestamp with this date and given civil time. -
Uses of PlainTime in net.time4j.format.expert
Modifier and TypeFieldDescriptionstatic ChronoFormatter<PlainTime>
Iso8601Format.BASIC_WALL_TIME
Defines the basic ISO-8601-format for a wall time with hour, minute and optional second using the pattern "HH[mm[ss[,SSSSSSSSS]]]".static ChronoFormatter<PlainTime>
Iso8601Format.EXTENDED_WALL_TIME
Defines the extended ISO-8601-format for a wall time with hour, minute and optional second using the pattern "HH[:mm[:ss[,SSSSSSSSS]]]".Modifier and TypeMethodDescriptionstatic ChronoPrinter<PlainTime>
Iso8601Format.ofBasicTime(IsoDecimalStyle decimalStyle, ClockUnit precision)
Obtains a printer with given decimal style for printing a clock time in basic format "HHmm[ss[,SSSSSSSSS]]".static ChronoPrinter<PlainTime>
Iso8601Format.ofExtendedTime(IsoDecimalStyle decimalStyle, ClockUnit precision)
Obtains a printer with given decimal style for printing a clock time in extended format "HH:mm[:ss[,SSSSSSSSS]]".static ChronoFormatter<PlainTime>
ChronoFormatter.ofTimePattern(String pattern, PatternType type, Locale locale)
Constructs a pattern-based formatter for clock time objects.static ChronoFormatter<PlainTime>
ChronoFormatter.ofTimeStyle(FormatStyle style, Locale locale)
Constructs a style-based formatter for plain time objects.static ChronoFormatter<PlainTime>
ChronoFormatter.ofTimeStyle(DisplayMode style, Locale locale)
Deprecated.Modifier and TypeMethodDescriptionChronoFormatter.Builder.addDayPeriod(Map<PlainTime,String> timeToLabels)
Defines a text format for a custom day period. -
Uses of PlainTime in net.time4j.format.platform
Modifier and TypeMethodDescriptionstatic SimpleFormatter<PlainTime>
SimpleFormatter.ofTimePattern(String pattern, Locale locale)
Creates a new formatter which uses the given pattern and locale for formatting and parsing plain times.static SimpleFormatter<PlainTime>
SimpleFormatter.ofTimeStyle(FormatStyle style, Locale locale)
Constructs a style-based formatter for plain time objects.static SimpleFormatter<PlainTime>
SimpleFormatter.ofTimeStyle(DisplayMode style, Locale locale)
Deprecated. -
Uses of PlainTime in net.time4j.range
Modifier and TypeMethodDescriptionstatic <I extends ChronoInterval<PlainTime>>
IntervalTree<PlainTime,I>IntervalTree.onClockAxis(Collection<I> intervals)
Creates an interval tree on the clock axis filled with given clock intervals.Modifier and TypeMethodDescriptionClockInterval.getEndAsClockTime()
Yields the end time point.ClockInterval.getStartAsClockTime()
Yields the start time point.ClockInterval.random()
Obtains a random time within this interval.Modifier and TypeMethodDescriptionstatic Comparator<ChronoInterval<PlainTime>>
ClockInterval.comparator()
Defines a comparator which sorts intervals first by start boundary and then by length.DayPartitionRule.getPartitions(PlainDate date)
Obtains the partitions for given date if defined.static IntervalCollection<PlainTime>
IntervalCollection.onClockAxis()
Yields an empty instance on the walltime axis.static <I extends ChronoInterval<PlainTime>>
IntervalTree<PlainTime,I>IntervalTree.onClockAxis(Collection<I> intervals)
Creates an interval tree on the clock axis filled with given clock intervals.Obtains a stream iterating over every clock time which is the result of addition of given duration to start until the end of this interval is reached.Obtains a stream iterating over every clock time which is the result of addition of given duration to start until the end is reached.Modifier and TypeMethodDescriptionstatic ClockInterval
Creates a finite half-open interval between given wall times.static ClockInterval
Creates a finite half-open interval between given start time and midnight at end of day (exclusive).Obtains a stream iterating over every clock time which is the result of addition of given duration to start until the end is reached.static ClockInterval
Creates a finite half-open interval between midnight at start of day and given end time.Modifier and TypeMethodDescriptionstatic ClockInterval
ClockInterval.from(ChronoInterval<PlainTime> interval)
Converts an arbitrary clock interval to an interval of this type.static ClockInterval
ClockInterval.parse(CharSequence text, ChronoParser<PlainTime> startFormat, char separator, ChronoParser<PlainTime> endFormat, BracketPolicy policy, ParseLog status)
Interpretes given text as interval.static ClockInterval
ClockInterval.parse(CharSequence text, ChronoParser<PlainTime> parser, BracketPolicy policy)
Interpretes given text as interval.static ClockInterval
ClockInterval.parse(String text, ChronoParser<PlainTime> parser)
Interpretes given text as interval using a localized interval pattern.static ClockInterval
ClockInterval.parse(String text, ChronoParser<PlainTime> parser, String intervalPattern)
Interpretes given text as interval using given interval pattern. -
Uses of PlainTime in net.time4j.sql
Modifier and TypeFieldDescriptionstatic JDBCAdapter<Time,PlainTime>
JDBCAdapter.SQL_TIME
Bridge between a JDBC-Time and the classPlainTime
. -
Uses of PlainTime in net.time4j.tz.model
Modifier and TypeMethodDescriptionDaylightSavingRule.getTimeOfDay()
Determines the clock time when the switch from winter time to summer time happens or vice versa.Modifier and TypeMethodDescriptionstatic GregorianTimezoneRule
GregorianTimezoneRule.ofFixedDay(Month month, int dayOfMonth, PlainTime timeOfDay, OffsetIndicator indicator, int savings)
Creates a rule for a fixed day in given month.static GregorianTimezoneRule
GregorianTimezoneRule.ofLastWeekday(Month month, Weekday dayOfWeek, PlainTime timeOfDay, OffsetIndicator indicator, int savings)
Creates a rule for the last day of week in given month.static GregorianTimezoneRule
GregorianTimezoneRule.ofWeekdayAfterDate(Month month, int dayOfMonth, Weekday dayOfWeek, PlainTime timeOfDay, OffsetIndicator indicator, int savings)
Creates a rule for a day of week after the given reference date.static GregorianTimezoneRule
GregorianTimezoneRule.ofWeekdayBeforeDate(Month month, int dayOfMonth, Weekday dayOfWeek, PlainTime timeOfDay, OffsetIndicator indicator, int savings)
Creates a rule for a day of week before the given reference date. -
Uses of PlainTime in net.time4j.xml
Modifier and TypeFieldDescriptionstatic XMLAdapter<XMLGregorianCalendar,PlainTime>
XMLAdapter.XML_TIME
Bridge between a XML-time according toxsd:time
and the typePlainTime
.
ChronoFormatter.ofTimeStyle(FormatStyle, Locale)