Kotlin / kotlinx-datetime

KotlinX multiplatform date/time library
Apache License 2.0
2.41k stars 101 forks source link

Add conversion extension properties also to unsigned types #451

Closed kejml closed 2 hours ago

kejml commented 2 hours ago

I like using existing Int.hours, Double.hours and Long.seconds extension properties.

Could we also get the same for unsigned types, i.e. UInt.hours and ULong.seconds?

dkhalanskyjb commented 2 hours ago

Hi! You are probably talking about kotlin.time.Duration, right? This is kotlinx.datetime, a different library. Filed at https://youtrack.jetbrains.com/issue/KT-72487/Add-extensions-like-UInt.hours-to-Duration

kejml commented 2 hours ago

Oh yes, I'm sorry, thanks for pointing me in the correct direction and creating the ticket there for me!