Bidirectional abstract constructor for ISO 8601 Ordinal Date format. Invalid day numbers will be clipped to the correct range (1 to 365 or 366).
Moduletime-compat-1.9.9
Data.Time.Calendar.OrdinalDate.Compat
- 4 types
- 11 values
- Packagetime-compat-1.9.9
- Exports16
- LicenceBSD-3-Clause
- SourceOrdinalDate.hs
fromMondayStartWeek :: YearYear.
-> WeekOfYearMonday-starting week number (as
%Win formatTime).-> IntDay of week. Monday is 1, Sunday is 7 (as
%uin 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 formatTime).
fromMondayStartWeekValid :: YearYear.
-> WeekOfYearMonday-starting week number (as
%Win formatTime).-> IntDay of week. Monday is 1, Sunday is 7 (as
%uin formatTime).-> Maybe Day
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
fromSundayStartWeek :: YearYear.
-> WeekOfYearSunday-starting week number (as
%Uin formatTime).-> IntDay of week Sunday is 0, Saturday is 6 (as
%win 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 formatTime).
fromSundayStartWeekValid :: YearYear.
-> WeekOfYearSunday-starting week number (as
%Uin formatTime).-> IntDay of week. Sunday is 0, Saturday is 6 (as
%win formatTime).-> Maybe Day
Is this year a leap year according to the proleptic Gregorian calendar?
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).
Show in ISO 8601 Ordinal Date format (yyyy-ddd)
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).
Convert to ISO 8601 Ordinal Date format.
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.16.0.1 · Data.Time.Calendar.DaysEq DayDefined in time-1.16.0.1 · Data.Time.Calendar.DaysData DayDefined in time-1.16.0.1 · Data.Time.Calendar.DaysOrd DayDefined in time-1.16.0.1 · Data.Time.Calendar.DaysRead DayDefined in time-1.16.0.1 · Data.Time.Format.Parse · orphanShow DayDefined in time-1.16.0.1 · Data.Time.Calendar.Gregorian · orphanIx DayDefined in time-1.16.0.1 · Data.Time.Calendar.DaysGeneric DayDefined in time-1.16.0.1 · Data.Time.Calendar.DaysNFData DayDefined in time-1.16.0.1 · Data.Time.Calendar.DaysDayPeriod DayDefined in time-1.16.0.1 · Data.Time.Calendar.DaysFormatTime DayDefined in time-1.16.0.1 · Data.Time.Format.Format.Instances · orphanParseTime DayDefined in time-1.16.0.1 · Data.Time.Format.Parse.Instances · orphanISO8601 DayDefined in time-1.16.0.1 · Data.Time.Format.ISO8601yyyy-mm-dd[ISO 8601:2004(E) sec. 4.1.2.2 extended format]Hashable DayDefined in time-compat-1.9.9 · Data.Time.Orphans · orphanLift DayDefined in time-1.16.0.1 · Data.Time.Calendar.Daystype Rep Day = D1 ('MetaDataDefined in time-1.16.0.1 · Data.Time.Calendar.Days"Day"
"Data.Time.Calendar.Days"
"time-1.16.0.1-ac1b"
'True) (C1 ('MetaCons"ModifiedJulianDay"
'PrefixI 'True) (S1 ('MetaSel ('Just"toModifiedJulianDay"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))
Day of year, in range 1 (January 1st) to 366. December 31st is 365 in a common year, 366 in a leap year.
Week of year, by various reckonings, generally in range 0-53 depending on reckoning.
Year of Common Era (when positive).