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

DateTime.h File Reference

#include <ctime>

Go to the source code of this file.

Classes

struct  DateTime

Defines

#define COMPARE(v)   if(v<other.v) return true; if(v>other.v) return false;
#define COMPARE(x)   if( x!=other.x ) return false;

Functions

CString DayInYearToString (int iDayInYearIndex)
CString LastDayToString (int iLastDayIndex)
CString DayOfWeekToString (int iDayOfWeekIndex)
CString HourInDayToString (int iHourIndex)
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 int NUM_LAST_DAYS = 7
const int NUM_LAST_WEEKS = 52
const int DAYS_IN_YEAR = 366
const int HOURS_IN_DAY = 24
const int DAYS_IN_WEEK = 7
const int MONTHS_IN_YEAR = 12


Define Documentation

#define COMPARE  )     if( x!=other.x ) return false;
 

#define COMPARE  )     if(v<other.v) return true; if(v>other.v) return false;
 


Function Documentation

tm AddDays tm  start,
int  iDaysToMove
 

CString DayInYearToString int  iDayInYearIndex  ) 
 

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  iHourIndex  ) 
 

CString LastDayToString int  iLastDayIndex  ) 
 

CString LastWeekToString int  iLastWeekIndex  ) 
 

CString MonthToString int  iMonthIndex  ) 
 


Variable Documentation

const int DAYS_IN_WEEK = 7
 

const int DAYS_IN_YEAR = 366
 

const int HOURS_IN_DAY = 24
 

const int MONTHS_IN_YEAR = 12
 

const int NUM_LAST_DAYS = 7
 

const int NUM_LAST_WEEKS = 52
 


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