thoughtbot / distance-of-time

Generate readable distances between times.

Home Page:http://hackage.haskell.org/package/distance-of-time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

distance-of-time

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

Hackage

This package is available on Hackage.

License

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.

About thoughtbot

thoughtbot

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.

About

Generate readable distances between times.

http://hackage.haskell.org/package/distance-of-time

License:MIT License


Languages

Language:Haskell 100.0%