time library

Provides type-safe units for Time.

Import this file to use Time quantities and their extensions on num (like 60.s, 1.5.h).

Classes

Quantity<T extends Unit<T>>
An abstract representation of a physical quantity, encapsulating a numerical value and a specific unit of measurement.
Time
Represents a quantity of time (duration).
Unit<T extends Unit<T>>
A contract for all unit enums.

Enums

TimeUnit
Represents units of time.

Extensions

TimeCreation on num
Provides convenient factory methods for creating Time instances from num.
TimeValueGetters on Time
Provides convenient access to Time values in specific units.