adius / vectual / TimeUtils.Time

Helpers for working with elm/lang's Posix data type (Mostly copied from https://package.elm-lang.org/packages/rluiten/elm-TimeUtils)

daysInMonth : Basics.Int -> Time.Month -> Basics.Int

Return days in month for year and month.

isLeapYear : Basics.Int -> Basics.Bool

Return True if year is a leap year.

isoDayOfWeek : Time.Weekday -> Basics.Int

Return the ISO day of the week. From Monday == 1, to Sunday == 7.

monthToInt : Time.Month -> Basics.Int

Return the ISO number of each month [1-12].

utcDateTime : Time.Posix -> String

utcWeek : Time.Posix -> String