diff options
author | Joris | 2016-04-04 01:27:36 +0200 |
---|---|---|
committer | Joris | 2016-04-04 01:27:36 +0200 |
commit | 8cd63a64abafe21378c35c2489d49f24c9ece3c9 (patch) | |
tree | 541145481d1492f3e388002d931cb3f8fec0acb2 /src/client/elm/LoggedIn/Home/View/Date.elm | |
parent | 01e4ce0fa7c369996ec4ef3a033d16d6fa0eb715 (diff) |
Add income list CRUD in user page
Diffstat (limited to 'src/client/elm/LoggedIn/Home/View/Date.elm')
-rw-r--r-- | src/client/elm/LoggedIn/Home/View/Date.elm | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/client/elm/LoggedIn/Home/View/Date.elm b/src/client/elm/LoggedIn/Home/View/Date.elm deleted file mode 100644 index 2cc55fe..0000000 --- a/src/client/elm/LoggedIn/Home/View/Date.elm +++ /dev/null @@ -1,59 +0,0 @@ -module LoggedIn.Home.View.Date - ( renderShortDate - , renderLongDate - ) where - -import Date exposing (..) -import String - -import Model.Translations exposing (..) - -renderShortDate : Date -> Translations -> String -renderShortDate date translations = - let params = - [ String.pad 2 '0' (toString (Date.day date)) - , String.pad 2 '0' (toString (getMonthNumber (Date.month date))) - , toString (Date.year date) - ] - in getParamMessage params "ShortDate" translations - -renderLongDate : Date -> Translations -> String -renderLongDate date translations = - let params = - [ toString (Date.day date) - , (getMessage (getMonthKey (Date.month date)) translations) - , toString (Date.year date) - ] - in getParamMessage params "LongDate" translations - -getMonthNumber : Month -> Int -getMonthNumber 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 - -getMonthKey : Month -> String -getMonthKey month = - case month of - Jan -> "January" - Feb -> "February" - Mar -> "March" - Apr -> "April" - May -> "May" - Jun -> "June" - Jul -> "July" - Aug -> "August" - Sep -> "September" - Oct -> "October" - Nov -> "November" - Dec -> "December" |