style: clang-format on all files
This commit is contained in:
@ -1,30 +1,18 @@
|
||||
#include "kprintf.h"
|
||||
#include "rtc.h"
|
||||
|
||||
void date()
|
||||
void date(void)
|
||||
{
|
||||
static const char *months[12] = {
|
||||
"January",
|
||||
"February",
|
||||
"March",
|
||||
"April",
|
||||
"May",
|
||||
"June",
|
||||
"July",
|
||||
"August",
|
||||
"September",
|
||||
"October",
|
||||
"November",
|
||||
"December" };
|
||||
static const char * week_days[] = {
|
||||
"Sunday",
|
||||
"Monday",
|
||||
"Tuesday",
|
||||
"Wednesday",
|
||||
"Thursday",
|
||||
"Friday",
|
||||
"Saturday" };
|
||||
struct rtc_date date = get_date();
|
||||
static const char *months[12] = {"January", "February", "March",
|
||||
"April", "May", "June",
|
||||
"July", "August", "September",
|
||||
"October", "November", "December"};
|
||||
static const char *week_days[] = {"Sunday", "Monday", "Tuesday",
|
||||
"Wednesday", "Thursday", "Friday",
|
||||
"Saturday"};
|
||||
struct rtc_date date = get_date();
|
||||
|
||||
kprintf(0, "%s. %d %s. %d %d:%d:%d\n", week_days[date.index_of_the_day], date.day, months[date.month], date.year, date.hour, date.minute, date.second);
|
||||
}
|
||||
kprintf(0, "%s. %d %s. %d %d:%d:%d\n", week_days[date.index_of_the_day],
|
||||
date.day, months[date.month], date.year, date.hour, date.minute,
|
||||
date.second);
|
||||
}
|
||||
|
Reference in New Issue
Block a user