hodatime-0.2.2.1: A fully featured date/time library based on Nodatime
Copyright(C) 2017 Jason Johnson
LicenseBSD-style (see the file LICENSE)
MaintainerJason Johnson <jason.johnson.081@gmail.com>
Stabilityexperimental
PortabilityPOSIX, Windows
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.HodaTime.Calendar.Iso

Description

This is the module for CalendarDate and CalendarDateTime in the Iso 8601 calendar. This calendar is the same as the Gregorian calendar except for how week dates are calculated.

Synopsis

Documentation

fromWeekDate :: WeekNumber -> DayOfWeek Gregorian -> Year -> Maybe (CalendarDate Gregorian) Source #

Smart constuctor for ISO calendar date based day within year week. Note that this method assumes weeks start on Monday and the first week of the year is the one which has at least four days in the new year. See the Gregorian module for alternative behavior