[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: IIGS clock wrong day of week/right month/day?
Jack Countryman <jcountry@seidata.com> wrote:
> However, when we started the program back up, while the month/day were
> right, the day of the week was off by one day (it reported 3/9/00 to be
> Wednesday instead of Thursday). Anyone know off hand if this is a
> problem in the program or in the IIGS clock routine? Does the clock
> generate the day of the week or is that done in the program?
It must be a bug in the program which is displaying the day of the week.
The IIgs clock is accessed via a toolbox routine which returns the year,
month, day of month, day of week, hour, minute and second. It is
returning the correct day of the week. (I just checked it.)
If a program gets the time via ProDOS, then it has to calculate the day
of week itself, and could easily have a bug regarding February 29th
2000, resulting in the day being reported one day earlier (Wednesday
instead of Thursday) for 1st March 2000 and later.
--
David Empson
dempson@actrix.gen.nz
Snail mail: P O Box 27-103, Wellington, New Zealand