core
/
io.islandtime
/
Year
/
Companion
common
jvm
Companion
object
Companion
Content copied to clipboard
Functions
Properties
Extensions
Functions
equals
Link copied to clipboard
common
open operator fun
equals
(other:
Any
?):
Boolean
Content copied to clipboard
hashCode
Link copied to clipboard
common
open fun
hashCode
():
Int
Content copied to clipboard
toString
Link copied to clipboard
common
open fun
toString
():
String
Content copied to clipboard
Properties
MAX
Link copied to clipboard
common
val
MAX
:
Year
Content copied to clipboard
The latest supported
Year
, which can be used as a "far future" sentinel.
MAX_VALUE
Link copied to clipboard
common
const val
MAX_VALUE
:
Int
= 999_999_999
Content copied to clipboard
The latest supported year value.
MIN
Link copied to clipboard
common
val
MIN
:
Year
Content copied to clipboard
The earliest supported
Year
, which can be used as a "far past" sentinel.
MIN_VALUE
Link copied to clipboard
common
const val
MIN_VALUE
:
Int
Content copied to clipboard
The earliest supported year value.
Extensions
now
Link copied to clipboard
jvm
fun
Year.Companion
.
now
(clock:
Clock
):
Year
Content copied to clipboard
Gets the current
Year
from the provided
clock
.
common
fun
Year.Companion
.
now
():
Year
Content copied to clipboard
Gets the current
Year
from the system clock.
common
fun
Year.Companion
.
now
(clock:
Clock
):
Year
Content copied to clipboard
Gets the current
Year
from the provided
clock
.