Added startOfDay, startOfWeek, and fixedParse.

* `startOfDay(TimeInfo): TimeInfo` returns a new `TimeInfo` representing
  midnight at the beginning of the given day.
* `startOfWeek(TimeInfo, WeekDay): TimeInfo` returns a new `TimeInfo`
  representing midnight at the beginning of the first day of the week. By
  default Monday is used as the start of the week (to be consistent with
  `times` view of the day order), but the user can pass in any other day to
  "start" the week. Because this find the start of the *current* week, the
  returned `TimeInfo` will always be a date in the past or present, never a
  date in the future.
This commit is contained in:
Jonathan Bernard
2016-10-21 15:28:28 -05:00
parent cb11d62e5d
commit 79d2cb392d
3 changed files with 85 additions and 4 deletions

View File

@ -1,8 +1,8 @@
# Package
version = "0.1.1"
version = "0.2.0"
author = "Jonathan Bernard"
description = "Utility methods to fill in the horrid time support in Nim\'s stdlib. This is holding me over until I can write a proper time module for the stdlib and submit it."
description = "Utility methods to fill in the lacking time support in Nim\'s stdlib. This is holding me over until I can write a proper time module for the stdlib and submit it."
license = "BSD3"
# Dependencies