time
2.0.0-SNAPSHOT.121
time
/
io.spine.time
/
YearMonths
Year
Months
public
final
class
YearMonths
Utilities for working with
YearMonth
values.
Functions
Functions
converter
Link copied to clipboard
public
static
SerializableConverter
<
YearMonth
,
YearMonth
>
converter
(
)
Obtains the converter from Java Time and back.
of
Link copied to clipboard
public
static
YearMonth
of
(
YearMonth
value
)
Converts the passed Java Time value.
public
static
YearMonth
of
(
int year
,
int month
)
Creates an instance with the the passed year and month.
parse
Link copied to clipboard
public
static
YearMonth
parse
(
String
str
)
Parses a year-month from the passed string.
to
Java
Time
Link copied to clipboard
public
static
YearMonth
toJavaTime
(
YearMonth
value
)
Converts the passed value to Java Time.
to
String
Link copied to clipboard
public
static
String
toString
(
YearMonth
value
)
Converts the passed value into a ISO-8601 year-month string, such as
"2018-06"
.