hodatime-0.2.1.1: A fully featured date/time library based on Nodatime

Safe HaskellSafe
LanguageHaskell2010

Data.HodaTime.Calendar.Gregorian

Contents

Synopsis

Constructors

calendarDate :: DayOfMonth -> Month Gregorian -> Year -> Maybe (CalendarDate Gregorian) Source #

Smart constuctor for Gregorian calendar date.

fromNthDay :: DayNth -> DayOfWeek Gregorian -> Month Gregorian -> Year -> Maybe (CalendarDate Gregorian) Source #

Smart constuctor for Gregorian calendar date based on relative month day.

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

Smart constuctor for Gregorian calendar date based on week date. Note that this method assumes weeks start on Sunday and the first week of the year is the one which has at least one day in the new year. For ISO compliant behavior use this constructor from the ISO module

Types

data Gregorian Source #

Instances

IsCalendar Gregorian Source # 
Bounded (DayOfWeek Gregorian) Source # 
Bounded (Month Gregorian) Source # 
Enum (DayOfWeek Gregorian) Source # 
Enum (Month Gregorian) Source # 
Eq (DayOfWeek Gregorian) Source # 
Eq (Month Gregorian) Source # 
Ord (DayOfWeek Gregorian) Source # 
Ord (Month Gregorian) Source # 
Show (DayOfWeek Gregorian) Source # 
Show (Month Gregorian) Source # 
type Date Gregorian Source # 
data DayOfWeek Gregorian Source # 
data Month Gregorian Source #