YearMonths

public final class YearMonths

Utilities for working with YearMonth values.

Functions

Link copied to clipboard
public static SerializableConverter<YearMonth, YearMonth> converter()
Obtains the converter from Java Time and back.
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.
Link copied to clipboard
public static YearMonth parse(String str)
Parses a year-month from the passed string.
Link copied to clipboard
public static YearMonth toJavaTime(YearMonth value)
Converts the passed value to Java Time.
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".