Shinobi Library - Realtime Clock Structure

SYS_RTC_DATE

Structure that stores date information

DEFINITION

typedef struct { 
 Uint16 year; 
 Uint8  month; 
 Uint8  day; 
 Uint8  hour; 
 Uint8  minute; 
 Uint8  second; 
 Uint8  dayofweek; 
 Uint8  ageofmoon; 
} SYS_RTC_DATE 

MEMBER

 year  year 
 month  month 
 day  date 
 hour  hour 
 minute  minute 
 second  second 
 dayofweek  day of the week 
 ageofmoon  moon phase 

DESCRIPTION

Structure that manages date information.

The argument year that expresses the year is calculated according to the Western calendar and can be set from 1950 to 2085.

The argument dayofweek expresses Sunday as 0. As the days pass, each is added one by one so that the last day, Saturday, is expressed as 6.

The argument ageofmoon, which expresses the phases of the moon, marks the moon's cycle from 0 to 29, with 0 for a new moon and 15 for a full moon.


REFERENCE

buFormatDisk()
buSaveExecFile()
buSaveFile()
syRtcCompareDate()
syRtcCountToDate()
syRtcDateToCount()
syRtcGetDate()
syRtcSetDate()

SYS_RTC_DATE
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999