elm/core/Date.elm
evancz d53cecf3ba List module dependencies in elm and js code.
Planning on having the compiler crawl through to determine dependencies, then compile everything in an appropriate order. This will also let me print out compiler progress in a reasonable order.
2013-02-23 00:19:40 +01:00

39 lines
634 B
Elm

module Date where
import Native.Date
data Day = Mon | Tue | Wed | Thu | Fri | Sat | Sun
data Month = Jan | Feb | Mar | Apr
| May | Jun | Jul | Aug
| Sep | Oct | Nov | Dec
read : String -> Date
read = Native.Date.read
toTime : Date -> Time
toTime = Native.Date.toTime
year : Date -> Int
year = Native.Date.year
month : Date -> Month
month = Native.Date.month
day : Date -> Int
day = Native.Date.day
dayOfWeek : Date -> Day
dayOfWeek = Native.Date.dayOfWeek
hour : Date -> Int
hour = Native.Date.hour
minute : Date -> Int
minute = Native.Date.minute
second : Date -> Int
second = Native.Date.second