摘要 |
PURPOSE:To perform a compensation for the leap year with a simple method, by providing a means to discriminate a 31-day month or a 30-day month from the information on the number of years until the next leap year, the date information and the information on the days of the week. CONSTITUTION:It is discriminated whether the month data includes 12 months. If the month data includes 12 months, the year data of an RAM6 is subtracted by a year. At the same time, the date data is set at January 1 and the days of the week is advanced by one day. The year data suffices with 0-3, and 0 indicates the leap year with 1-3 showing the normal years. When the year data is subtracted, 0-1 is obtained with the data 0. In this connection, 3 is set newly for the year data. If the month data shows February and the date data shows >=28 days, whether a leap year or not is discriminated. If it is a leap year, whether the month has 29 days is discriminated. When the month has no 29 days, the date is advanced by a day. If the month has 29 days, the month proceeds to March. |