
Data.Time.Calendar.OrdinalDate 


Description 
ISO 8601 Ordinal Date format


Synopsis 



Documentation 


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.



convert from ISO 8601 Ordinal Date format.
Invalid day numbers will be clipped to the correct range (1 to 365 or 366).



show in ISO 8601 Ordinal Date format (yyyyddd)



Is this year a leap year according to the proleptic Gregorian calendar?



Get the number of the Mondaystarting 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 Data.Time.Format.formatTime).
Monday is 1, Sunday is 7 (as "%u" in Data.Time.Format.formatTime).



Get the number of the Sundaystarting 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 Data.Time.Format.formatTime).
Sunday is 0, Saturday is 6 (as "%w" in Data.Time.Format.formatTime).



:: Integer  Year.
 > Int  Mondaystarting week number.
 > Int  Day of week.
Monday is 1, Sunday is 7 (as "%u" in Data.Time.Format.formatTime).
 > Day   The inverse of mondayStartWeek. Get a Day given the year,
the number of the Mondaystarting week, 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 Data.Time.Format.formatTime).




:: Integer  Year.
 > Int  Sundaystarting week number.
 > Int  Day of week
Sunday is 0, Saturday is 6 (as "%w" in Data.Time.Format.formatTime).
 > Day   The inverse of sundayStartWeek. Get a Day given the year and
the number of the day of a Sundaystarting week.
The first Sunday is the first day of week 1, any earlier days in the
year are week 0 (as "%U" in Data.Time.Format.formatTime).



Produced by Haddock version 2.4.2 