15.9.1.2.2 Add to Main

Add the following to main().
system_init();

struct rtc_calendar_time time;
time.year   = 2012;
time.month  = 12;
time.day    = 31;
time.hour   = 23;
time.minute = 59;
time.second = 59;

configure_rtc_calendar();

/* Set current time. */
rtc_calendar_set_time(&rtc_instance, &time);

rtc_calendar_swap_time_mode(&rtc_instance);