|
Data.Time.Calendar.OrdinalDate |
|
|
Description |
ISO 8601 Ordinal Date format
|
|
Synopsis |
|
|
|
Documentation |
|
toOrdinalDate :: Day -> (Integer, Int) |
convert to ISO 8601 Ordinal Date format. First element of result is year (proleptic Gregoran calendar),
second is the day of the year, with 1 for Jan 1, and 365 (or 366 in leap years) for Dec 31.
|
|
fromOrdinalDate :: Integer -> Int -> Day |
convert from ISO 8601 Ordinal Date format.
Invalid day numbers will be clipped to the correct range (1 to 365 or 366).
|
|
showOrdinalDate :: Day -> String |
show in ISO 8601 Ordinal Date format (yyyy-ddd)
|
|
isLeapYear :: Integer -> Bool |
Is this year a leap year according to the propleptic Gregorian calendar?
|
|
mondayStartWeek :: Day -> (Int, Int) |
Get the number of the Monday-starting week in the year and the day of the week.
The first Monday is the first day of week 1, any earlier days in the year are week 0 (as "%W" in formatTime).
Monday is 1, Sunday is 7 (as "%u" in formatTime).
|
|
sundayStartWeek :: Day -> (Int, Int) |
Get the number of the Sunday-starting week in the year and the day of the week.
The first Sunday is the first day of week 1, any earlier days in the year are week 0 (as "%U" in formatTime).
Sunday is 0, Saturday is 6 (as "%w" in formatTime).
|
|
Produced by Haddock version 0.8 |