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