Skip to content

Commit

Permalink
feat(Compare): forgot to expose the Compare module previously, bump v…
Browse files Browse the repository at this point in the history
…ersion
  • Loading branch information
rluiten committed Jan 12, 2016
1 parent 2bf3e8b commit 47931dc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion elm-package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.3.0",
"version": "1.4.0",
"summary": "Date Extra library add/subtract/diff/format etc dates.",
"repository": "https://github.com/rluiten/elm-date-extra.git",
"license": "BSD3",
Expand All @@ -8,6 +8,7 @@
],
"exposed-modules": [
"Date.Config",
"Date.Compare",
"Date.Core",
"Date.Create",
"Date.Duration",
Expand Down
2 changes: 1 addition & 1 deletion src/Date/Compare.elm
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ is comp date1 date2 =
time1 >= time2


{- Compare three dates.
{-| Compare three dates.
This figures out the low and high bounds from date2
and date3 using minimum and maximum of them respectively.
Expand Down
7 changes: 5 additions & 2 deletions src/Date/Duration.elm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type Duration
| Year
-- | Combo {year,month,week,day,hour,min,sec,millisecond}
-- DateDiff could return a Duration with fields set


{-| Add duration * count to date. -}
add : Duration -> Int -> Date -> Date
Expand Down Expand Up @@ -102,7 +102,10 @@ addYear yearCount date =
addMonth (12 * yearCount) date


{-| Return first of month for year of date adjusted to given month. -}

{-| Return first of month for year of date adjusted to given month.
TODO WILL BE REMOVED IN FUTURE in favour of Field module.
-}
firstOfTheMonth : Date -> Month -> Date
firstOfTheMonth baseDate targetMonth =
let
Expand Down

0 comments on commit 47931dc

Please sign in to comment.