homepage: https://github.com/s9gf4ult/real-day-end
changelog-type: ''
hash: 0befb5ec7d204323ee01efccc1ec701a5ba929ff96c864769fc58cd9ca66d337
test-bench-deps:
  base: -any
  time: -any
  quickcheck-instances: -any
  tasty-quickcheck: -any
  tasty: -any
  real-day-end: -any
maintainer: example@example.com
synopsis: Tiny library to calculate date considering when your day realy ends
changelog: ''
basic-deps:
  base: ! '>=4.6 && <5'
  time: -any
all-versions:
- '0.0.1'
author: Author name here
latest: '0.0.1'
description-type: markdown
description: ! '# What?


  Consider you are falling a sleep at 2:00am, so next day for you starts

  from 2:00, not from 0:00. So, if now is 2017-10-10T01:00 and you did

  not sleept yet, then this is still 2017-10-09 for you.


  ```

  >>> let now = ZonedTime (LocalTime (fromGregorian 2017 10 10) (TimeOfDay 01 00 00))
  utc

  >>> now

  2017-10-10 01:00:00 UTC

  >>> realDay (TimeOfDay 0 0 0) now

  2017-10-10

  >>> realDay (TimeOfDay 2 0 0) now

  2017-10-09


  ```


  This function shifts day switch to the specified time. It may be

  useful for some logging software and similar stuff.

'
license-name: BSD3

Update from Hackage at 2017-11-26T11:51:36Z
Update from Hackage at 2017-11-26T11:51:36Z
