Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thoughtbot/date-conversions
Date conversions
https://github.com/thoughtbot/date-conversions
date-conversion dates haskell
Last synced: about 1 month ago
JSON representation
Date conversions
- Host: GitHub
- URL: https://github.com/thoughtbot/date-conversions
- Owner: thoughtbot
- License: mit
- Created: 2016-07-22T10:51:57.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2021-09-24T16:04:51.000Z (about 3 years ago)
- Last Synced: 2024-10-28T14:06:57.320Z (about 2 months ago)
- Topics: date-conversion, dates, haskell
- Language: Haskell
- Homepage: http://hackage.haskell.org/package/date-conversions
- Size: 16.6 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Date Conversions
This is a Haskell library for handling date operations easily, e.g. calculating
the beginning or end of a week, month, quarter, or year.```haskell
import qualified Data.Time as T
import qualified Data.Time.Calendar.DateConversions as DC-- Given the following signatures
--
-- now :: T.UTCTimeDC.beginningOfWeek $ T.utctDay now
DC.beginningOfMonth $ T.utctDay now
DC.endOfYear $ T.utctDay now
```## Hackage
This package is available on [Hackage].
[Hackage]: http://hackage.haskell.org/package/date-conversions
## License
DateConversions is Copyright © 2016-2017 Josh Clayton and thoughtbot, inc. It
is free software, and may be redistributed under the terms specified in the
[LICENSE](/LICENSE) file.## About thoughtbot
![thoughtbot](https://thoughtbot.com/logo.png)
DateConversions 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][haskell-services], or [hire our Haskell development team][hire]
to design, develop, and grow your product.[haskell-services]: https://thoughtbot.com/services/haskell?utm_source=github
[hire]: https://thoughtbot.com?utm_source=github