Board Support Package (BSP)
•
69
The Console of the Linux Fieldbus Coupler
WAGO-I/O-SYSTEM 750
Linux Fieldbus Coupler
Options for the hardware clock
The hardware clock time can be set using the system time or the system time
can be set using the hardware clock time.
The general syntax to set the hardware clock is:
hwclock [-r | --show] [-s | --hctosys] [-w | --systohc]
[-l | --localtime] [-u | --utc]
The options for the hardware clock are:
•
hwclock -r
or
hwclock --show
:
Reads the hardware clock and displays it on the console. This time is
always indicated in local time, even if the hardware clock is set to
Greenwich Time (UTC).
•
hwclock -s
or
hwclock --hctosys
:
System time is set using the hardware clock time.
•
hwclock -w
or
hwclock --systohc
:
Hardware clock is set using the current system time
•
hwclock -l
or
--localtime
:
The hardware clock time is the local time
•
hwclock -u
or
--utc
The hardware clock time is Greenwich Time
Example:
hwclock -r
Tue Feb 6 14:55:28 2007 0.000000 seconds