Package-level declarations

Functions

Link copied to clipboard
fun Year.print(format: String, locale: Locale = Locale.US): String
Link copied to clipboard
fun String.toYear(vararg formats: String?): Year?

Works off of String representations of Year (ISO default: "2024"). When formats are provided, each format is attempted in-order until one succeeds.