1 {-# LANGUAGE DeriveDataTypeable #-}
2 module Hcompta.Model.Date where
5 import qualified Data.Time.Calendar as Time (Day)
6 import qualified Data.Time.Clock as Time (UTCTime)
7 import qualified Data.Time.Format as Time ()
8 import qualified Data.Time.Clock.POSIX as Time (posixSecondsToUTCTime)
9 import Data.Typeable ()
17 nil = Time.posixSecondsToUTCTime 0
24 | Interval_Quarters Int
26 | Interval_DayOfMonth Int
27 | Interval_DayOfWeek Int
28 -- Interval_WeekOfYear Int
29 -- Interval_MonthOfYear Int
30 -- Interval_QuarterOfYear Int
31 deriving (Data, Eq, Ord, Read, Show, Typeable)
34 = (String, String, String)
37 = Span (Maybe Time.Day) (Maybe Time.Day)
38 deriving (Data, Eq, Ord, Read, Show, Typeable)
43 deriving (Eq, Read, Show)