项目作者: thoughtbot

项目描述 :
Generate readable distances between times.
高级语言: Haskell
项目地址: git://github.com/thoughtbot/distance-of-time.git
创建时间: 2017-02-04T03:34:47Z
项目社区:https://github.com/thoughtbot/distance-of-time

开源协议:MIT License

下载


distance-of-time

This is a Haskell package capturing readable distances between times.

  1. import qualified Data.Time as T
  2. import qualified Data.Time.Distance as TD
  3. -- Given the following signatures
  4. --
  5. -- now :: T.UTCTime
  6. -- publishedOn :: T.UTCTime
  7. 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.