
Upon reaching the time set in the alarm, it will open Rhythmbox and the playback of the songs that we have added in the application will begin.

This will also allow the system to automatically adjust for Daylight Saving Time. For example, for Central Standard Time (CST), the file /usr/share/zoneinfo/America/Chicago or /usr/share/zoneinfo/CST6CDT would be used. Timezone information files are stored in the /usr/share/zoneinfo directory. The most common timezones are installed in the base image contact EMAC for additional timezone definitions if required. Setting the timezone is done by creating a link from /etc/localtime to the desired timezone information file. Tue Oct 18 10:35: the system is set to use UTC for the hardware clock setting, the utc option must be passed to hwclock if it is used outside of the /etc/init.d/hwclock.sh script to synchronize the hardware and system clocks.īy default, EMAC OE systems are set to UTC timezone. The following example illustrates how the utc option allows the system to automatically account for the timezone when setting and reading the date Doing so will cause the /etc/init.d/hwclock.sh script to pass the utc option to the hwclock command when setting the hardware clock and when using it to set the system clock. This can be done easily by adding the line UTC=yes to /etc/default/rcS.


In these cases, it is best to keep the hardware clock in UTC. However, if the hardware clock is the primary method used to initialize the system clock, there will be no way to automatically adjust for Daylight Saving Time changes that occur while the system is off. If UTC is used for the system clock, or NTP or another method is used to synchronize the clocks, this will not cause an issue. By default, EMAC OE uses the local time value for the hardware clock. Although the hardware clock only holds an absolute time value and no timezone value, adjustments can be made to account for the timezone when reading and setting the clocks. The system can be configured to use either local time (see Local Timezone) or UTC for the hardware clock. This generally means that the hardware clock has not yet been set, in which case running the hwclock -systohc command will correct the issue. On some boards you may receive a message such as hwclock: RTC_RD_TIME: Invalid or incomplete multibyte or wide character or a similar message when attempting to read the hardware clock.

On system shutdown, the current system time is saved to the RTC using the /etc/init.d/save-rtc.sh script. Note that the hardware clock is generally set to UTC regardless of the local timezone. This is used by /etc/init.d/hwclock.sh to initialize the system clock during the boot process. The -hctosys option can be used to set the system clock using the value stored in the hardware clock. This command is called by the system shutdown scripts using /etc/init.d/hwclock.sh. The -systohc option sets the value of the hardware clock using the system clock. Running hwclock with no arguments prints the current value stored in the hardware clock. The hardware clock can be accessed through the hwclock command.
