oaalto / time-values / Time.Values

Extract time values from numbers.


type alias TimeValues =
{ milliseconds : Basics.Int
, seconds : Basics.Int
, minutes : Basics.Int
, hours : Basics.Int
, days : Basics.Int
, weeks : Basics.Int 
}

Container for the compound elements.

fromMilliseconds : Basics.Int -> TimeValues

Extracts the compound elements from the given milliseconds.

fromSeconds : Basics.Int -> TimeValues

Extracts the compound elements from the given seconds.