diff options
Diffstat (limited to 'src/server/Job/Frequency.hs')
-rw-r--r-- | src/server/Job/Frequency.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/server/Job/Frequency.hs b/src/server/Job/Frequency.hs new file mode 100644 index 0000000..263f6e6 --- /dev/null +++ b/src/server/Job/Frequency.hs @@ -0,0 +1,13 @@ +module Job.Frequency + ( Frequency(..) + , microSeconds + ) where + +data Frequency = + EveryHour + | EveryDay + deriving (Eq, Read, Show) + +microSeconds :: Frequency -> Int +microSeconds EveryHour = 1000000 * 60 * 60 +microSeconds EveryDay = (microSeconds EveryHour) * 24 |