Files
itgmania212121/stepmania/src/TimeConstants.h
T

40 lines
1013 B
C
Raw Normal View History

2004-02-22 20:44:33 +00:00
#ifndef TimeConstants_H
#define TimeConstants_H
/*
-----------------------------------------------------------------------------
Class: TimeConstants
Desc:
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
2004-04-05 05:22:32 +00:00
#include <ctime>
2004-02-22 23:29:13 +00:00
2004-02-22 20:44:33 +00:00
const int NUM_LAST_DAYS = 7;
const int NUM_LAST_WEEKS = 52;
const int DAYS_IN_YEAR = 365;
const int HOURS_IN_DAY = 24;
const int DAYS_IN_WEEK = 7;
2004-02-22 23:29:13 +00:00
const int MONTHS_IN_YEAR = 12;
2004-02-22 20:44:33 +00:00
CString DayInYearToString( int iDayInYearIndex );
CString LastDayToString( int iLastDayIndex );
CString DayOfWeekToString( int iDayOfWeekIndex );
CString HourInDayToString( int iHourIndex );
2004-02-22 23:29:13 +00:00
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 );
2004-02-22 20:44:33 +00:00
#endif