clean up calorie table
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user