clean up calorie table

This commit is contained in:
Chris Danford
2004-02-23 01:44:04 +00:00
parent 4f28086bfd
commit 771889d948
4 changed files with 26 additions and 17 deletions
+6 -2
View File
@@ -58,6 +58,11 @@ CString DayOfWeekToString( int iDayOfWeekIndex )
return DAY_OF_WEEK_TO_NAME[iDayOfWeekIndex];
}
CString DayOfWeekToShortString( int iDayOfWeekIndex )
{
return DayOfWeekToString(iDayOfWeekIndex).Left(3);
}
CString HourInDayToString( int iHourInDayIndex )
{
return ssprintf("%02d:00", iHourInDayIndex);
@@ -124,8 +129,7 @@ tm GetNextSunday( tm start )
tm GetDayInYearAndYear( int iDayInYearIndex, int iYear )
{
time_t now = time( NULL );
tm when = *localtime( &now );
tm when = GetLocalTime();
when.tm_mday = iDayInYearIndex;
when.tm_year = iYear - 1900;