Is this year a leap year according to the proleptic Gregorian calendar?
Modulererebase-1.21.2Haskell2010
Data.Time.Calendar.OrdinalDate
- 4 types
- 11 values
- Packagererebase-1.21.2
- Exports16
- LanguageHaskell2010
- LicenceMIT
- SourceOrdinalDate.hs
The Modified Julian Day is a standard count of days, with zero being the day 1858-11-17.
Instances16Enum, Eq, Data, Ord, Read, Show, …
Enum DayDefined in time-1.12.2 · Data.Time.Calendar.DaysEq DayDefined in time-1.12.2 · Data.Time.Calendar.DaysData DayDefined in time-1.12.2 · Data.Time.Calendar.DaysOrd DayDefined in time-1.12.2 · Data.Time.Calendar.DaysRead DayDefined in time-1.12.2 · Data.Time.Format.Parse · orphanShow DayDefined in time-1.12.2 · Data.Time.Calendar.Gregorian · orphanIx DayDefined in time-1.12.2 · Data.Time.Calendar.DaysGeneric DayDefined in time-compat-1.9.8 · Data.Time.Orphans · orphanNFData DayDefined in time-1.12.2 · Data.Time.Calendar.DaysHashable DayDefined in time-compat-1.9.8 · Data.Time.Orphans · orphanDayPeriod DayDefined in time-1.12.2 · Data.Time.Calendar.DaysFormatTime DayDefined in time-1.12.2 · Data.Time.Format.Format.Instances · orphanParseTime DayDefined in time-1.12.2 · Data.Time.Format.Parse.Instances · orphanISO8601 DayDefined in time-1.12.2 · Data.Time.Format.ISO8601yyyy-mm-dd(ISO 8601:2004(E) sec. 4.1.2.2 extended format)Lift DayDefined in time-compat-1.9.8 · Data.Time.Orphans · orphantype Rep Day = D1 ('MetaDataDefined in time-compat-1.9.8 · Data.Time.Orphans · orphan"Day"
"Data.Time.Calendar.Days"
"time-1.12.2-cfd2"
'True) (C1 ('MetaCons"ModifiedJulianDay"
'PrefixI 'True) (S1 ('MetaSel ('Just"toModifiedJulianDay"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))
Year of Common Era (when positive).
Convert from ISO 8601 Ordinal Date format. Invalid day numbers will be clipped to the correct range (1 to 365 or 366).
Convert from ISO 8601 Ordinal Date format. Invalid day numbers return Nothing
Convert to ISO 8601 Ordinal Date format.
Day of year, in range 1 (January 1st) to 366. December 31st is 365 in a common year, 366 in a leap year.
Bidirectional abstract constructor for ISO 8601 Ordinal Date format. Invalid day numbers will be clipped to the correct range (1 to 365 or 366).
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 Data.Time.Format.formatTime).
Monday is 1, Sunday is 7 (as %u in Data.Time.Format.formatTime).
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 Data.Time.Format.formatTime).
Sunday is 0, Saturday is 6 (as %w in Data.Time.Format.formatTime).
fromMondayStartWeekValid :: YearYear.
-> WeekOfYearMonday-starting week number (as
%WinData.Time.Format.formatTime).-> IntDay of week. Monday is 1, Sunday is 7 (as
%uinData.Time.Format.formatTime).-> Maybe Day
fromSundayStartWeekValid :: YearYear.
-> WeekOfYearSunday-starting week number (as
%UinData.Time.Format.formatTime).-> IntDay of week. Sunday is 0, Saturday is 6 (as
%winData.Time.Format.formatTime).-> Maybe Day
Week of year, by various reckonings, generally in range 0-53 depending on reckoning.
fromMondayStartWeek :: YearYear.
-> WeekOfYearMonday-starting week number (as
%WinData.Time.Format.formatTime).-> IntDay of week. Monday is 1, Sunday is 7 (as
%uinData.Time.Format.formatTime).-> Day
The inverse of mondayStartWeek. Get a Day given the year,
the number of the Monday-starting 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).
fromSundayStartWeek :: YearYear.
-> WeekOfYearSunday-starting week number (as
%UinData.Time.Format.formatTime).-> IntDay of week Sunday is 0, Saturday is 6 (as
%winData.Time.Format.formatTime).-> Day
The inverse of sundayStartWeek. Get a Day given the year and
the number of the day of a Sunday-starting 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).
Show in ISO 8601 Ordinal Date format (yyyy-ddd)