nim-time-utils/timeutils.nimble
Jonathan Bernard 79d2cb392d 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.
2016-10-21 15:34:09 -05:00

12 lines
317 B
Nim

# Package
version = "0.2.0"
author = "Jonathan Bernard"
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
requires "nim >= 0.15.0"