Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

DateTime.cpp File Reference

#include "global.h"
#include "DateTime.h"
#include "RageUtil.h"

Defines

#define COPY_M(v)   dtNow.v = tNow.v;

Functions

CString DayInYearToString (int iDayInYear)
int StringToDayInYear (CString sDayInYear)
CString LastDayToString (int iLastDayIndex)
CString DayOfWeekToString (int iDayOfWeekIndex)
CString HourInDayToString (int iHourInDayIndex)
CString MonthToString (int iMonthIndex)
CString LastWeekToString (int iLastWeekIndex)
tm AddDays (tm start, int iDaysToMove)
tm GetYesterday (tm start)
int GetDayOfWeek (tm time)
tm GetNextSunday (tm start)
tm GetDayInYearAndYear (int iDayInYearIndex, int iYear)

Variables

const CString LAST_DAYS_NAME [NUM_LAST_DAYS]
const CString DAY_OF_WEEK_TO_NAME [DAYS_IN_WEEK]
const CString MONTH_TO_NAME [MONTHS_IN_YEAR]

Define Documentation

#define COPY_M  )     dtNow.v = tNow.v;
 


Function Documentation

tm AddDays tm  start,
int  iDaysToMove
 

CString DayInYearToString int  iDayInYear  ) 
 

CString DayOfWeekToString int  iDayOfWeekIndex  ) 
 

tm GetDayInYearAndYear int  iDayInYearIndex,
int  iYear
 

int GetDayOfWeek tm  time  ) 
 

tm GetNextSunday tm  start  ) 
 

tm GetYesterday tm  start  ) 
 

CString HourInDayToString int  iHourInDayIndex  ) 
 

CString LastDayToString int  iLastDayIndex  ) 
 

CString LastWeekToString int  iLastWeekIndex  ) 
 

CString MonthToString int  iMonthIndex  ) 
 

int StringToDayInYear CString  sDayInYear  ) 
 


Variable Documentation

const CString DAY_OF_WEEK_TO_NAME[DAYS_IN_WEEK] [static]
 

Initial value:

{ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", }

const CString LAST_DAYS_NAME[NUM_LAST_DAYS] [static]
 

Initial value:

{ "Today", "Yesterday", "Day2Ago", "Day3Ago", "Day4Ago", "Day5Ago", "Day6Ago", }

const CString MONTH_TO_NAME[MONTHS_IN_YEAR] [static]
 

Initial value:

{ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", }


Generated on Thu Jan 27 20:57:36 2005 for StepMania by doxygen 1.3.7