year
Returns the year from this date expression, as an integer.
Returns the year from this datetime expression, as an integer.
Returns the year from this timestamp expression, as an integer.
Returns the year from this timestampWithTimeZone expression, as an integer.
Deprecated
Deprecated due to usage of old kotlinx.datetime.Instant. The change caused by deprecation of Instant in the kotlinx.datetime (see more on https://github.com/Kotlin/kotlinx-datetime?tab=readme-ov-file#deprecation-of-instant)
Replace with
year
Content copied to clipboard
Returns the year from this timestamp expression, as an integer.