public final class LocalTimes
extends java.lang.Object
LocalTime
.Modifier and Type | Method and Description |
---|---|
static io.spine.util.SerializableConverter<java.time.LocalTime,LocalTime> |
converter()
Obtains the instance of Java Time converter.
|
static LocalTime |
of(int hours,
int minutes)
Obtains local time from hours and minutes.
|
static LocalTime |
of(int hours,
int minutes,
int seconds)
Obtains local time from hours, minutes, and seconds.
|
static LocalTime |
of(int hours,
int minutes,
int seconds,
int nanos)
Obtains local time from an hours, minutes, seconds, milliseconds, and nanoseconds.
|
static LocalTime |
of(java.time.LocalTime value)
Obtains local time from time passed
java.time value. |
static LocalTime |
parse(java.lang.String str)
Parses the passed string into local time value.
|
static java.time.LocalTime |
toJavaTime(LocalTime value)
Converts the passed value to corresponding Java Time instance.
|
static java.lang.String |
toString(LocalTime time)
Converts the passed time to string with optional part representing a fraction of a second.
|
public static LocalTime of(int hours, int minutes, int seconds, int nanos)
public static LocalTime of(java.time.LocalTime value)
java.time
value.public static java.time.LocalTime toJavaTime(LocalTime value)
public static LocalTime of(int hours, int minutes, int seconds)
public static LocalTime of(int hours, int minutes)
public static java.lang.String toString(LocalTime time)
Examples of results: "13:45:30.123456789"
, "09:37:00"
.
parse(String)
public static LocalTime parse(java.lang.String str)
toString(LocalTime)
public static io.spine.util.SerializableConverter<java.time.LocalTime,LocalTime> converter()