Generate readable distances between times.
This is a Haskell package capturing readable distances between times.
import qualified Data.Time as T
import qualified Data.Time.Distance as TD
-- Given the following signatures
--
-- now :: T.UTCTime
-- publishedOn :: T.UTCTime
TD.distanceOfTimeInWords publishedOn now
This package is available on Hackage.
DistanceOfTime is Copyright © 2017 Josh Clayton and thoughtbot, inc.. It is
free software, and may be redistributed under the terms specified in the
LICENSE file.
DistanceOfTime is maintained and funded by thoughtbot, inc.
The names and logos for thoughtbot are trademarks of thoughtbot, inc.
We love open source software and Haskell. See our other Haskell
projects, or hire our Haskell development team
to design, develop, and grow your product.