core / io.islandtime.operators / truncatedToHours

truncatedToHours

(iosArm64, iosX64, jvm, macosX64) fun Time.truncatedToHours(): Time
fun OffsetTime.truncatedToHours(): OffsetTime

Return a copy of this time, truncated to the hour value. All smaller components will be replaced with zero.

(iosArm64, iosX64, jvm, macosX64) fun DateTime.truncatedToHours(): DateTime
fun ZonedDateTime.truncatedToHours(): ZonedDateTime
fun OffsetDateTime.truncatedToHours(): OffsetDateTime

Return a copy of this date-time, truncated to the hour value. All smaller components will be replaced with zero.