Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haskell: human readable dates

Tags:

haskell

Is there a library for turning human-readable relative dates like "since yesterday" and "until Wednesday" into UTCTime?

friendly-time looks like a good package, but I want something that can also give me "until", tomorrow, and next Saturday times. Is there a more thorough package?

The fields in Human Time Locale are:

justNow :: String
secondsAgo :: String -> String
oneMinuteAgo :: String
minutesAgo :: String -> String
oneHourAgo :: String
aboutHoursAgo :: String -> String
at :: String -> String
daysAgo :: String -> String
weekAgo :: String -> String
weeksAgo :: String -> String
onYear :: String -> String
locale :: TimeLocale
like image 434
Rose Perrone Avatar asked Dec 21 '13 05:12

Rose Perrone


1 Answers

That library is what you need.

Dates

like image 50
zudov Avatar answered Oct 20 '22 05:10

zudov