Added routine to get time from RTC