Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
OSTime.c File Reference

Functions

asm OSTime OSGetTime (void)
 
asm OSTick OSGetTick (void)
 
OSTime __OSGetSystemTime (void)
 
OSTime __OSTimeToSystemTime (OSTime time)
 
static BOOL IsLeapYear (s32 year)
 
static s32 GetYearDays (s32 year, s32 mon)
 
static s32 GetLeapDays (s32 year)
 
static void GetDates (s32 days, OSCalendarTime *cal)
 
void OSTicksToCalendarTime (OSTime ticks, OSCalendarTime *td)
 

Variables

static s32 YearDays []
 
static s32 LeapYearDays []
 

Function Documentation

◆ __OSGetSystemTime()

OSTime __OSGetSystemTime ( void  )

◆ __OSTimeToSystemTime()

OSTime __OSTimeToSystemTime ( OSTime  time)

◆ GetDates()

static void GetDates ( s32  days,
OSCalendarTime cal 
)
static

◆ GetLeapDays()

static s32 GetLeapDays ( s32  year)
inlinestatic

◆ GetYearDays()

static s32 GetYearDays ( s32  year,
s32  mon 
)
inlinestatic

◆ IsLeapYear()

static BOOL IsLeapYear ( s32  year)
inlinestatic

◆ OSGetTick()

asm OSTick OSGetTick ( void  )

◆ OSGetTime()

asm OSTime OSGetTime ( void  )

◆ OSTicksToCalendarTime()

void OSTicksToCalendarTime ( OSTime  ticks,
OSCalendarTime td 
)

Variable Documentation

◆ LeapYearDays

s32 LeapYearDays[]
static
Initial value:
= {
0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335,
}

◆ YearDays

s32 YearDays[]
static
Initial value:
= {
0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334,
}