finos/morphir-elm/6.2.0

NOTE: the latest version is 22.0.2

Formerly Morgan-Stanley/morphir-elm. Search finds this package by either name.

Morphir.SDK.LocalDate

This module adds the definition of a date without time zones. Useful in business modeling.

type alias LocalDate =
Date

Concept of a date without time zones.

diffInDays : LocalDate -> LocalDate -> Int

Find the number of days between the given dates.

diffInWeeks : LocalDate -> LocalDate -> Int

Find the number of weeks between the given dates.

diffInMonths : LocalDate -> LocalDate -> Int

Find the number of months between the given dates.

diffInYears : LocalDate -> LocalDate -> Int

Find the number of years between the given dates.

addDays : Int -> LocalDate -> LocalDate

Add the given days to a given date.

addWeeks : Int -> LocalDate -> LocalDate

Add the given weeks to a given date.

addMonths : Int -> LocalDate -> LocalDate

Add the given months to a given date.

addYears : Int -> LocalDate -> LocalDate

Add the given years to a given date.