GetLocalTime()

This commit is contained in:
Glenn Maynard
2004-02-14 11:19:18 +00:00
parent ba72d9e341
commit 103fbbc1e2
2 changed files with 3 additions and 12 deletions
+2 -10
View File
@@ -130,20 +130,12 @@ CString SecondsToTime( float fSecs )
return sReturn;
}
int MonthOfYear()
struct tm GetLocalTime()
{
const time_t t = time(NULL);
struct tm tm;
localtime_r( &t, &tm );
return tm.tm_mon;
}
int DayOfMonth()
{
const time_t t = time(NULL);
struct tm tm;
localtime_r( &t, &tm );
return tm.tm_mday;
return tm;
}