aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Utils/Date.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/elm/Utils/Date.elm')
-rw-r--r--src/client/elm/Utils/Date.elm39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/client/elm/Utils/Date.elm b/src/client/elm/Utils/Date.elm
deleted file mode 100644
index 352e4ce..0000000
--- a/src/client/elm/Utils/Date.elm
+++ /dev/null
@@ -1,39 +0,0 @@
-module Utils.Date exposing
- ( monthToNum
- , numToMonth
- )
-
-import Date exposing (..)
-
-monthToNum : Month -> Int
-monthToNum month =
- case month of
- Jan -> 1
- Feb -> 2
- Mar -> 3
- Apr -> 4
- May -> 5
- Jun -> 6
- Jul -> 7
- Aug -> 8
- Sep -> 9
- Oct -> 10
- Nov -> 11
- Dec -> 12
-
-numToMonth : Int -> Month
-numToMonth n =
- case n of
- 1 -> Jan
- 2 -> Feb
- 3 -> Mar
- 4 -> Apr
- 5 -> May
- 6 -> Jun
- 7 -> Jul
- 8 -> Aug
- 9 -> Sep
- 10 -> Oct
- 11 -> Nov
- 12 -> Dec
- _ -> Jan