SetCalendar(int, int, int)

Set calendar date for the module.

void SetCalendar(
    int nYear,
    int nMonth,
    int nDay
);

Parameters

nYear

Specific year to set calendar to from 1340 to 32001.

nMonth

Specific month to set calendar from 1 to 12.

nDay

Specific day to set calendar to from 1 to 28.


Description

Sets the current year, month and day for the module.



Remarks

If values larger than the month or day are specified, they will be wrapped around and the overflow will be used to advance the next field. e.g. Specifying a year of 1350, month of 33 and day of 10 will result in the calender being set to a year of 1352, a month of 9 and a day of 10.


Known Bugs

There is still a bug with advancing the time when setting the month to higher than 13, though it doesn’t always set the month to 12.

The previously noted bug about not being able to set the year to before 1340 has been fixed a while ago.


Version

1.30

See Also

functions: GetAge | GetCalendarDay | GetCalendarMonth | GetCalendarYear | SetTime | SetWeather
categories: Time Functions
events: OnModuleLoad Event


 author: Jody Fletcher, editor: Lilac Soul, additional contributor(s): Jon Dewey, Lilac Soul