git-svn-id: https://rt-thread.googlecode.com/svn/trunk@251 bbd45198-f89e-11dd-88c7-29a3b14d5316

This commit is contained in:
coldfish.zhu 2009-12-28 12:20:54 +00:00
parent fb44bdb9ba
commit 6a7ad0f578
1 changed files with 3 additions and 3 deletions

View File

@ -179,7 +179,7 @@ void set_date(rt_uint32_t year, rt_uint32_t month, rt_uint32_t day)
if (ti != RT_NULL)
{
ti->tm_year = year - 1900;
ti->tm_mon = month - 1; /* 2009.12.27 modify by coldfish.zhu@gmail.com */
ti->tm_mon = month - 1; /* ti->tm_mon = month; */
ti->tm_mday = day;
}
@ -218,7 +218,7 @@ void set_time(rt_uint32_t hour, rt_uint32_t minute, rt_uint32_t second)
rt_rtc_control(device, RT_DEVICE_CTRL_RTC_SET_TIME, &now);
}
}
FINSH_FUNCTION_EXPORT(set_time, set second)
FINSH_FUNCTION_EXPORT(set_time, set time)
void list_date()
{
@ -227,5 +227,5 @@ void list_date()
time(&now);
rt_kprintf("%s\n", ctime(&now));
}
FINSH_FUNCTION_EXPORT(list_date, set date)
FINSH_FUNCTION_EXPORT(list_date, list date)
#endif