RTC framework data structures RTC API Reading and setting time Driver example Playing with alarms RTCs and user space The sysfs interface The hwclock utility