Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- abs() - Method in class com.ethlo.time.Duration
-
Returns the absolute duration
- add(Duration) - Method in class com.ethlo.time.Duration
-
Adds another duration to this one.
C
- com.ethlo.time - package com.ethlo.time
- com.ethlo.time.token - package com.ethlo.time.token
- compareTo(Duration) - Method in class com.ethlo.time.Duration
- ConfigurableDateTimeParser - Class in com.ethlo.time.token
-
A configurable format `DateTimeParser`.
D
- DateTime - Class in com.ethlo.time
-
Container class for parsed date/date-time data.
- DateTime(Field, int, int, int, int, int, int, int, TimezoneOffset, int) - Constructor for class com.ethlo.time.DateTime
- DateTime(Field, int, int, int, int, int, int, int, TimezoneOffset, int, int) - Constructor for class com.ethlo.time.DateTime
- DateTimeParser - Interface in com.ethlo.time
- DateTimeParsers - Class in com.ethlo.time
- DateTimeParsers() - Constructor for class com.ethlo.time.DateTimeParsers
- DateTimeToken - Interface in com.ethlo.time.token
- DateTimeTokens - Class in com.ethlo.time
- DateTimeTokens() - Constructor for class com.ethlo.time.DateTimeTokens
- DAY - Enum constant in enum com.ethlo.time.Field
-
Day of month
- DEFAULT - Static variable in class com.ethlo.time.ParseConfig
- digits(Field, int) - Static method in class com.ethlo.time.DateTimeTokens
- Duration - Class in com.ethlo.time
-
Represents a precise duration in seconds and nanoseconds.
E
- equals(Object) - Method in class com.ethlo.time.DateTime
- equals(Object) - Method in class com.ethlo.time.Duration
- equals(Object) - Method in class com.ethlo.time.TimezoneOffset
F
- fallback(Temporal) - Method in interface com.ethlo.time.TemporalConsumer
- fallback(Temporal) - Method in interface com.ethlo.time.TemporalHandler
- Field - Enum in com.ethlo.time
-
Enumeration of the fields that makes up the date/date-time
- format(OffsetDateTime) - Static method in class com.ethlo.time.ITU
-
Format the input as an RFC-3339 formatted date-time in the timezone of the input.
- format(OffsetDateTime, int) - Static method in class com.ethlo.time.ITU
-
Format the input as an RFC-3339 formatted date-time in the timezone of the input, with the specified number of fraction digits.
- formatUtc(OffsetDateTime) - Static method in class com.ethlo.time.ITU
-
Format the input as an RFC-3339 formatted date-time in the UTC timezone with second resolution.
- formatUtc(OffsetDateTime, int) - Static method in class com.ethlo.time.ITU
-
Format the input as an RFC-3339 formatted date-time in the UTC timezone
- formatUtc(OffsetDateTime, Field) - Static method in class com.ethlo.time.ITU
-
Format the input as an ISO format string, limited to the granularity of the specified field, in the UTC timezone.
- formatUtcMicro(OffsetDateTime) - Static method in class com.ethlo.time.ITU
-
Format the input as an RFC-3339 formatted date-time in the UTC timezone with microsecond resolution.
- formatUtcMilli(OffsetDateTime) - Static method in class com.ethlo.time.ITU
-
Format the input as an RFC-3339 formatted date-time in the UTC timezone with millisecond resolution.
- formatUtcNano(OffsetDateTime) - Static method in class com.ethlo.time.ITU
-
Format the input as an RFC-3339 formatted date-time in the UTC timezone with nanosecond resolution
- fractions() - Static method in class com.ethlo.time.DateTimeTokens
G
- getDateTimeSeparators() - Method in class com.ethlo.time.ParseConfig
- getDayOfMonth() - Method in class com.ethlo.time.DateTime
- getField() - Method in interface com.ethlo.time.token.DateTimeToken
- getFractionDigits() - Method in class com.ethlo.time.DateTime
-
Return the number of significant fraction digits in the second.
- getFractionSeparators() - Method in class com.ethlo.time.ParseConfig
- getHour() - Method in class com.ethlo.time.DateTime
- getHours() - Method in class com.ethlo.time.TimezoneOffset
- getLong(TemporalField) - Method in class com.ethlo.time.DateTime
- getMinute() - Method in class com.ethlo.time.DateTime
- getMinutes() - Method in class com.ethlo.time.TimezoneOffset
- getMonth() - Method in class com.ethlo.time.DateTime
- getMostGranularField() - Method in class com.ethlo.time.DateTime
-
Returns the most granular field found during parsing
- getNano() - Method in class com.ethlo.time.DateTime
- getNanos() - Method in class com.ethlo.time.Duration
-
Returns the nanosecond component of this duration.
- getNearestDateTime() - Method in exception class com.ethlo.time.LeapSecondException
-
Get the nearest date-time that is a roll-over to the next minute, (and potentially lower granularity fields) and 0 seconds.
- getOffset() - Method in class com.ethlo.time.DateTime
-
Returns the time offset, if available
- getParseLength() - Method in class com.ethlo.time.DateTime
- getRequiredLength() - Method in enum com.ethlo.time.Field
- getRequiredLength() - Method in class com.ethlo.time.TimezoneOffset
- getSecond() - Method in class com.ethlo.time.DateTime
- getSeconds() - Method in class com.ethlo.time.Duration
-
Returns the number of seconds in this duration.
- getSecondsInMinute() - Method in exception class com.ethlo.time.LeapSecondException
-
The number of seconds, typically
60. - getTotalSeconds() - Method in class com.ethlo.time.TimezoneOffset
- getYear() - Method in class com.ethlo.time.DateTime
H
- handle(LocalDate) - Method in interface com.ethlo.time.TemporalConsumer
- handle(LocalDate) - Method in interface com.ethlo.time.TemporalHandler
- handle(LocalDateTime) - Method in interface com.ethlo.time.TemporalConsumer
- handle(LocalDateTime) - Method in interface com.ethlo.time.TemporalHandler
- handle(OffsetDateTime) - Method in interface com.ethlo.time.TemporalConsumer
- handle(OffsetDateTime) - Method in interface com.ethlo.time.TemporalHandler
- handle(Year) - Method in interface com.ethlo.time.TemporalConsumer
- handle(Year) - Method in interface com.ethlo.time.TemporalHandler
- handle(YearMonth) - Method in interface com.ethlo.time.TemporalConsumer
- handle(YearMonth) - Method in interface com.ethlo.time.TemporalHandler
- hashCode() - Method in class com.ethlo.time.DateTime
- hashCode() - Method in class com.ethlo.time.Duration
- hashCode() - Method in class com.ethlo.time.TimezoneOffset
- HOUR - Enum constant in enum com.ethlo.time.Field
-
Hour of day
I
- includesGranularity(Field) - Method in class com.ethlo.time.DateTime
-
Returns if the specified field is part of this date/date-time
- isDateTimeSeparator(char) - Method in class com.ethlo.time.ParseConfig
- isFailOnTrailingJunk() - Method in class com.ethlo.time.ParseConfig
- isFractionSeparator(char) - Method in class com.ethlo.time.ParseConfig
- isSupported(TemporalField) - Method in class com.ethlo.time.DateTime
- isValid(String) - Static method in class com.ethlo.time.ITU
-
Check if the dateTime is valid according to the RFC-3339 specification
- isValid(String, TemporalType...) - Static method in class com.ethlo.time.ITU
-
Check if the input is valid for one of the specified types
- isVerifiedValidLeapYearMonth() - Method in exception class com.ethlo.time.LeapSecondException
-
Whether this is a date-time with a well-known leap-second
- ITU - Class in com.ethlo.time
-
The main access to the parse and formatting functions in this library.
L
- LeapSecondException - Exception Class in com.ethlo.time
-
This exception is used to signal that there was a potentially valid leap-second in the parsed input.
- LeapSecondException(OffsetDateTime, int, boolean) - Constructor for exception class com.ethlo.time.LeapSecondException
- LOCAL_DATE - Enum constant in enum com.ethlo.time.TemporalType
- LOCAL_DATE_TIME - Enum constant in enum com.ethlo.time.TemporalType
- localDate() - Static method in class com.ethlo.time.DateTimeParsers
- localTime() - Static method in class com.ethlo.time.DateTimeParsers
M
- MINUTE - Enum constant in enum com.ethlo.time.Field
-
Minute of hour
- MONTH - Enum constant in enum com.ethlo.time.Field
-
Month of year
N
- NANO - Enum constant in enum com.ethlo.time.Field
-
Nanos
- NANOS_PER_MICROSECOND - Static variable in class com.ethlo.time.Duration
- NANOS_PER_MILLISECOND - Static variable in class com.ethlo.time.Duration
- NANOS_PER_SECOND - Static variable in class com.ethlo.time.Duration
- negate() - Method in class com.ethlo.time.Duration
-
Negates this duration.
- normalized() - Method in class com.ethlo.time.Duration
-
Returns a normalized string representation of this duration.
O
- of(int, int, int, int, int, int, int, TimezoneOffset, int) - Static method in class com.ethlo.time.DateTime
-
Create a new instance with nanosecond granularity from the input parameters
- of(int, int, int, int, int, int, TimezoneOffset) - Static method in class com.ethlo.time.DateTime
-
Create a new instance with second granularity from the input parameters
- of(int, int, int, int, int, TimezoneOffset) - Static method in class com.ethlo.time.DateTime
-
Create a new instance with minute granularity from the input parameters
- of(long, int) - Static method in class com.ethlo.time.Duration
- of(DateTimeToken...) - Static method in class com.ethlo.time.DateTimeParsers
- of(DateTimeToken...) - Static method in class com.ethlo.time.token.ConfigurableDateTimeParser
-
Create a new parser with the specified tokens
- of(OffsetDateTime) - Static method in class com.ethlo.time.DateTime
-
Create a new instance with data from the specified date-time.
- of(TemporalField) - Static method in enum com.ethlo.time.Field
- of(ZoneOffset) - Static method in class com.ethlo.time.TimezoneOffset
- ofDate(int, int, int) - Static method in class com.ethlo.time.DateTime
-
Create a new instance with day granularity from the input parameters
- ofDays(long) - Static method in class com.ethlo.time.Duration
-
Creates a duration from days.
- OFFSET_DATE_TIME - Enum constant in enum com.ethlo.time.TemporalType
- ofHours(long) - Static method in class com.ethlo.time.Duration
-
Creates a duration from hours.
- ofHoursMinutes(int, int) - Static method in class com.ethlo.time.TimezoneOffset
- ofMicros(long) - Static method in class com.ethlo.time.Duration
-
Creates a duration from microseconds.
- ofMillis(long) - Static method in class com.ethlo.time.Duration
-
Creates a duration from milliseconds.
- ofMinutes(long) - Static method in class com.ethlo.time.Duration
-
Creates a duration from minutes.
- ofNanos(long) - Static method in class com.ethlo.time.Duration
-
Creates a duration from nanoseconds.
- ofSeconds(long) - Static method in class com.ethlo.time.Duration
-
Creates a duration from seconds.
- ofTotalSeconds(int) - Static method in class com.ethlo.time.TimezoneOffset
- ofWeeks(long) - Static method in class com.ethlo.time.Duration
-
Creates a duration from weeks.
- ofYear(int) - Static method in class com.ethlo.time.DateTime
-
Create a new instance with year granularity from the input parameters
- ofYearMonth(int, int) - Static method in class com.ethlo.time.DateTime
-
Create a new instance with year-month granularity from the input parameters
P
- parse(String) - Method in interface com.ethlo.time.DateTimeParser
- parse(String, TemporalConsumer) - Static method in class com.ethlo.time.ITU
-
Parse the input, and use callbacks for the type of date/date-time it contains.
- parse(String, TemporalHandler<T>) - Static method in class com.ethlo.time.ITU
-
Parse the input, and use callbacks for the type of date/date-time it contains.
- parse(String, ParsePosition) - Method in interface com.ethlo.time.DateTimeParser
-
Parse the text from the given position of the parsePosition
- parse(String, ParsePosition) - Method in class com.ethlo.time.token.ConfigurableDateTimeParser
- ParseConfig - Class in com.ethlo.time
- parseDateTime(String) - Static method in class com.ethlo.time.ITU
-
Parse an RFC-3339 formatted date-time to an
OffsetDateTime - parseDateTime(String, ParsePosition) - Static method in class com.ethlo.time.ITU
- parseDuration(String) - Static method in class com.ethlo.time.ITU
-
Parses a duration string, a strict subset of ISO 8601 durations.
- parseDuration(String, int) - Static method in class com.ethlo.time.ITU
-
Parses a duration string starting at the specified offset.
- parseLenient(String) - Static method in class com.ethlo.time.ITU
-
Parse an ISO formatted date and optionally time to a
DateTime. - parseLenient(String, ParseConfig) - Static method in class com.ethlo.time.ITU
-
Allows parsing leniently with
to control some aspects of the parsing - parseLenient(String, ParseConfig, ParsePosition) - Static method in class com.ethlo.time.ITU
- plusHours(long) - Method in class com.ethlo.time.Duration
- plusMinutes(long) - Method in class com.ethlo.time.Duration
- plusNanos(long) - Method in class com.ethlo.time.Duration
- plusSeconds(long) - Method in class com.ethlo.time.Duration
R
- read(String, ParsePosition) - Method in interface com.ethlo.time.token.DateTimeToken
- rfc3339() - Static method in class com.ethlo.time.DateTimeParsers
S
- SECOND - Enum constant in enum com.ethlo.time.Field
-
Second of minute
- SECONDS_PER_DAY - Static variable in class com.ethlo.time.Duration
- SECONDS_PER_HOUR - Static variable in class com.ethlo.time.Duration
- SECONDS_PER_MINUTE - Static variable in class com.ethlo.time.Duration
- SECONDS_PER_WEEK - Static variable in class com.ethlo.time.Duration
- separators(char...) - Static method in class com.ethlo.time.DateTimeTokens
- STRICT - Static variable in class com.ethlo.time.ParseConfig
- subtract(Duration) - Method in class com.ethlo.time.Duration
-
Subtracts another duration from this one.
T
- TemporalConsumer - Interface in com.ethlo.time
-
Consumer for flexibly dealing with different granularity date/date-times
- TemporalHandler<T> - Interface in com.ethlo.time
-
Handler for flexibly dealing with different granularity date/date-times
- TemporalType - Enum in com.ethlo.time
-
Enumeration listing the different types that can be converted to
- timeline() - Method in class com.ethlo.time.Duration
-
Computes an
Instantthat represents this duration on the timeline from now - timeline(Instant) - Method in class com.ethlo.time.Duration
-
Computes an
Instantthat represents this duration on the timeline from a given instant. - TimezoneOffset - Class in com.ethlo.time
-
Container class for timezone offset, denoted by hours and minutes
- toInstant() - Method in class com.ethlo.time.DateTime
-
This method will attempt to create an Instant from whatever granularity is available in the parsed year/date/date-time.
- toLocalDate() - Method in class com.ethlo.time.DateTime
-
Creates a
LocalDate, discarding any higher granularity fields - toLocalDatetime() - Method in class com.ethlo.time.DateTime
-
Creates a
LocalDateTimediscarding any timezone information - toLocalTime() - Method in class com.ethlo.time.DateTime
- toOffsetDatetime() - Method in class com.ethlo.time.DateTime
-
Creates an
OffsetDateTime - toString() - Method in class com.ethlo.time.DateTime
-
Formats this date-time as a date/date-time with the same fields as was parsed
- toString() - Method in class com.ethlo.time.Duration
- toString() - Method in class com.ethlo.time.ParseConfig
- toString() - Method in class com.ethlo.time.TimezoneOffset
- toString(int) - Method in class com.ethlo.time.DateTime
-
Formats this date-time as an RFC-3339 compatible string with the specified number of fractions in the second.
- toString(Field) - Method in class com.ethlo.time.DateTime
-
Formats this date-time as an ISO formatted string with the last included field as specified.
- toYear() - Method in class com.ethlo.time.DateTime
-
Creates a
Yeardiscarding any higher granularity fields - toYearMonth() - Method in class com.ethlo.time.DateTime
-
Creates a
YearMonthdiscarding any higher granularity fields - toZoneOffset() - Method in class com.ethlo.time.TimezoneOffset
U
- UTC - Static variable in class com.ethlo.time.TimezoneOffset
V
- valueOf(Class<? extends Temporal>) - Static method in enum com.ethlo.time.Field
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.ethlo.time.Field
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.ethlo.time.TemporalType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.ethlo.time.Field
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.ethlo.time.TemporalType
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- withDateTimeSeparators(char...) - Method in class com.ethlo.time.ParseConfig
- withFailOnTrailingJunk(boolean) - Method in class com.ethlo.time.ParseConfig
- withFractionSeparators(char...) - Method in class com.ethlo.time.ParseConfig
Y
- YEAR - Enum constant in enum com.ethlo.time.Field
-
Year
- YEAR - Enum constant in enum com.ethlo.time.TemporalType
- YEAR_MONTH - Enum constant in enum com.ethlo.time.TemporalType
Z
- ZERO - Static variable in class com.ethlo.time.Duration
- ZONE_OFFSET - Enum constant in enum com.ethlo.time.Field
-
Timezone offset
- zoneOffset() - Static method in class com.ethlo.time.DateTimeTokens
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form