@@ -5,7 +5,7 @@ module Date where
5issues with internationalization or locale formatting.
5issues with internationalization or locale formatting.
7# Conversions
7# Conversions
8−@docs read, toTime
8+@docs read, toTime, fromTime
10# Extractions
10# Extractions
11@docs year, month, Month, day, dayOfWeek, Day, hour, minute, second
11@docs year, month, Month, day, dayOfWeek, Day, hour, minute, second
@@ -36,6 +36,10 @@ read = Native.Date.read
36toTime : Date -> Time
36toTime : Date -> Time
37toTime = Native.Date.toTime
37toTime = Native.Date.toTime
39+{-| Take a UNIX time and convert it to a `Date` -}
40+fromTime : Time -> Date
41+fromTime = Native.Date.fromTime
39{-| Extract the year of a given date. Given the date 23 June 1990 at 11:45AM
43{-| Extract the year of a given date. Given the date 23 June 1990 at 11:45AM
40this returns the integer `1990`. -}
44this returns the integer `1990`. -}
41year : Date -> Int
45year : Date -> Int