thyme-0.3.5.5: A faster time library

Safe HaskellNone
LanguageHaskell2010

Data.Thyme.Calendar.WeekDate

Contents

Description

Various Week Date formats

Synopsis

Documentation

type Year = Int Source

ISO 8601 Week Date

data WeekDate Source

Weeks numbered 01 to 53, where week 01 is the first week that has at least 4 days in the new year. Days before week 01 are considered to belong to the previous year.

Constructors

WeekDate 

Fields

wdYear :: !Year
 
wdWeek :: !WeekOfYear
 
wdDay :: !DayOfWeek
 

Weeks starting Sunday

data SundayWeek Source

Weeks numbered from 0 to 53, starting with the first Sunday of the year as the first day of week 1. The last week of a given year and week 0 of the next both refer to the same week, but not all DayOfWeek are valid. Year coincides with that of gregorian.

Constructors

SundayWeek 

Fields

swYear :: !Year
 
swWeek :: !WeekOfYear
 
swDay :: !DayOfWeek
 

Weeks starting Monday

data MondayWeek Source

Weeks numbered from 0 to 53, starting with the first Monday of the year as the first day of week 1. The last week of a given year and week 0 of the next both refer to the same week, but not all DayOfWeek are valid. Year coincides with that of gregorian.

Constructors

MondayWeek 

Fields

mwYear :: !Year
 
mwWeek :: !WeekOfYear
 
mwDay :: !DayOfWeek
 

Lenses