Kotlin Duration
Introduction In Kotlin, the Duration class represents a span of time. It is part of the kotlin.time package and is used to handle time-based operations in a type-safe manner. The Duration class provides various methods to create, manipulate, and measure durations in different units like seconds, minutes, hours, and more.