Tool/software:
void
AppRTC(void)
{
uint32_t ui32Status;
struct tm sTime;
//
// Print the buffer to the terminal.
//
UARTprintf("To wake, wait for 5 seconds or press WAKE or"
"RESET\n");
UARTprintf("See README.txt for additional wake sources.\n");
//
// Wait for UART transmit to complete before proceeding to
// hibernate.
//
UARTFlushTx(false);
//
// Get calendar match value to be 5 seconds from the current time.
//
GetCalendarMatchValue(&sTime);
//
// Set the calendar match register such that it wakes up from
// hibernation in 5 seconds.
//
MAP_HibernateCalendarMatchSet(0, &sTime);
//
// Read and clear any status bits that might have been set since
// last clearing them.
//
ui32Status = HibernateIntStatus(0);
MAP_HibernateIntClear(ui32Status);
//
// Configure Hibernate wake sources.
//
MAP_HibernateWakeSet(HIBERNATE_WAKE_PIN | HIBERNATE_WAKE_GPIO |
HIBERNATE_WAKE_RESET | HIBERNATE_WAKE_RTC);
//
// Request Hibernation.
//
MAP_HibernateRequest();
//
// Wait for a while for hibernate to activate. It should never get
// past this point.
//
SysCtlDelay(100);
//
// If it ever gets here, store the text, that informs the user on
// what to do, into the respective widget buffers.
//
UARTprintf("The controller did not enter hibernate. Press RESET"
"button to restart example.\n");
//
// Wait here.
//
while(1)
{
}
}
this part of the code is not fetcing the current date and time... what to change from it ?

