Data.Time.Calendar.OrdinalDate.Compat

time-compat-1.9.6.1: Compatibility package for time

Safe Haskell | Trustworthy
Language | Haskell2010

Data.Time.Calendar.OrdinalDate.Compat

# Documentation

data Day #

#### Instances

Instances details

Data Day |
Instance details Defined in Data.Time.Calendar.Days Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Day -> c Day gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Day toConstr :: Day -> Constr dataTypeOf :: Day -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Day) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Day) gmapT :: (forall b. Data b => b -> b) -> Day -> Day gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Day -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Day -> r gmapQ :: (forall d. Data d => d -> u) -> Day -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Day -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Day -> m Day gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Day -> m Day gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Day -> m Day
Enum Day |
Instance details Defined in Data.Time.Calendar.Days Methods succ :: Day -> Day pred :: Day -> Day toEnum :: Int -> Day fromEnum :: Day -> Int enumFrom :: Day -> [Day] enumFromThen :: Day -> Day -> [Day] enumFromTo :: Day -> Day -> [Day] enumFromThenTo :: Day -> Day -> Day -> [Day]
Ix Day |
Instance details Defined in Data.Time.Calendar.Days Methods range :: (Day, Day) -> [Day] index :: (Day, Day) -> Day -> Int unsafeIndex :: (Day, Day) -> Day -> Int inRange :: (Day, Day) -> Day -> Bool rangeSize :: (Day, Day) -> Int unsafeRangeSize :: (Day, Day) -> Int
NFData Day |
Instance details Defined in Data.Time.Calendar.Days Methods rnf :: Day -> ()
Eq Day |
Instance details Defined in Data.Time.Calendar.Days Methods (==) :: Day -> Day -> Bool (/=) :: Day -> Day -> Bool
Ord Day |
Instance details Defined in Data.Time.Calendar.Days Methods compare :: Day -> Day -> Ordering (<) :: Day -> Day -> Bool (<=) :: Day -> Day -> Bool (>) :: Day -> Day -> Bool (>=) :: Day -> Day -> Bool max :: Day -> Day -> Day min :: Day -> Day -> Day
Hashable Day # |
Instance details Defined in Data.Time.Orphans Methods hashWithSalt :: Int -> Day -> Int # hash :: Day -> Int #
DayPeriod Day |
Instance details Defined in Data.Time.Calendar.Days Methods periodFirstDay :: Day -> Day periodLastDay :: Day -> Day dayPeriod :: Day -> Day
ISO8601 Day |
Instance details Defined in Data.Time.Format.ISO8601 Methods iso8601Format :: Format Day #

type Year = Integer #

type DayOfYear = Int #

type WeekOfYear = Int #

toOrdinalDate :: Day -> (Year, DayOfYear) #

fromOrdinalDate :: Year -> DayOfYear -> Day #

pattern YearDay :: Year -> DayOfYear -> Day #

fromOrdinalDateValid :: Year -> DayOfYear -> Maybe Day #

showOrdinalDate :: Day -> String #

isLeapYear :: Year -> Bool #

mondayStartWeek :: Day -> (WeekOfYear, Int) #

sundayStartWeek :: Day -> (WeekOfYear, Int) #

fromMondayStartWeek :: Year -> WeekOfYear -> Int -> Day #

fromMondayStartWeekValid :: Year -> WeekOfYear -> Int -> Maybe Day #

fromSundayStartWeek :: Year -> WeekOfYear -> Int -> Day #

fromSundayStartWeekValid :: Year -> WeekOfYear -> Int -> Maybe Day #