kxjtime / com.sandjelkovic.kxjtime / kotlin.Int

Extensions for kotlin.Int

days

val Int.days: Duration

Create Duration from receiver value handled as days

hours

val Int.hours: Duration

Create Duration from receiver value handled as hours

milliseconds

val Int.milliseconds: Duration

Create Duration from receiver value handled as milliseconds

minutes

val Int.minutes: Duration

Create Duration from receiver value handled as minutes

months

val Int.months: Period

Create a Period from receiver value handled as months

nanoseconds

val Int.nanoseconds: Duration

Create Duration from receiver value handled as nanoseconds

seconds

val Int.seconds: Duration

Create Duration from receiver value handled as seconds

weeks

val Int.weeks: Period

Create a Period from receiver value handled as weeks

years

val Int.years: Period

Create a Period from receiver value handled as years