Day

data Day
old-time System.Time
A day of the week.
newtype Day
time Data.Time.Calendar
The Modified Julian Day is a standard count of days, with zero being the day 1858-11-17.
dayFractionToTimeOfDay :: Rational -> TimeOfDay
time Data.Time.LocalTime
Get a TimeOfDay given the fraction of a day since midnight.
dayOfYearToMonthAndDay :: Bool -> Int -> (Int, Int)
time Data.Time.Calendar.MonthDay
convert day of year in the Gregorian or Julian calendars to month and day. First arg is leap year flag
addDays :: Integer -> Day -> Day
time Data.Time.Calendar
ctDay :: CalendarTime -> Int
old-time System.Time
Day of the month (1 to 31)
ctWDay :: CalendarTime -> Day
old-time System.Time
Day of the week
ctYDay :: CalendarTime -> Int
old-time System.Time
Day of the year (0 to 364, or 365 in leap years)
module Data.Time.Calendar.MonthDay
time Data.Time.Calendar.MonthDay
diffDays :: Day -> Day -> Integer
time Data.Time.Calendar
Friday :: Day
old-time System.Time
fromJulianYearAndDay :: Integer -> Int -> Day
time Data.Time.Calendar.Julian
convert from proleptic Julian year and day format. Invalid day numbers will be clipped to the correct range (1 to 365 or 366).
fromJulianYearAndDayValid :: Integer -> Int -> Maybe Day
time Data.Time.Calendar.Julian
convert from proleptic Julian year and day format. Invalid day numbers will return Nothing
fromMondayStartWeek :: Integer -> Int -> Int -> Day
time Data.Time.Calendar.OrdinalDate
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 :: Integer -> Int -> Int -> Maybe Day
time Data.Time.Calendar.OrdinalDate
fromSundayStartWeek :: Integer -> Int -> Int -> Day
time Data.Time.Calendar.OrdinalDate
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 :: Integer -> Int -> Int -> Maybe Day
time Data.Time.Calendar.OrdinalDate
localDay :: LocalTime -> Day
time Data.Time.LocalTime
localTimeOfDay :: LocalTime -> TimeOfDay
time Data.Time.LocalTime
localToUTCTimeOfDay :: TimeZone -> TimeOfDay -> (Integer, TimeOfDay)
time Data.Time.LocalTime
Convert a ToD in some timezone to a ToD in UTC, together with a day adjustment.

Show more results