Monthtype represents a month in the Gregorian calendar.
Note that, while
fromEnumfunctions start counting at 0, i.e.
toEnum 1 :: Monthis
Subtract the given number of days from a date.
subtractDays d ris equivalent to
addDays d (- r).
Datefrom the triplet
(year, month, days).
Datevalue into a
(year, month, day)triple, according to the Gregorian calendar.
Given the three values (year, month, day), constructs a
date y m dturns the year
m, and day
Datevalue. Raises an error if
dis outside the range
1 .. monthDayCount y m.
Trueif the given year is a leap year.
Get the number corresponding to given month. For example,
2, and so on.
Get number of days in the given month in the given year, according to Gregorian calendar. This does not take historical calendar changes into account (for example, the moves from Julian to Gregorian calendar), but does count leap years.
: Int -> Month -> Int -> Int -> Int -> Int -> Time
Constructs an instant using
Extracts UTC date from UTC time.
This function will truncate Time to Date, but in many cases it will not return the date you really want. The reason for this is that usually the source of Time would be getTime, and getTime returns UTC, and most likely the date you want is something local to a location or an exchange. Consequently the date retrieved this way would be yesterday if retrieved when the market opens in say Singapore.
scenario, pass the simulated scenario to given date.