70
•
Board Support Package (BSP)
The Console of the Linux Fieldbus Coupler
WAGO-I/O-SYSTEM
750
Linux Fieldbus Coupler
Options for the system clock
The general syntax to set the system clock is:
date [Option]… [MMDDhhmm[[CC]YY][.ss]] [+Format]
The options for the system clock are:
•
date -R
Outputs an RFC-822 compliant data string that consists of date and system
time
•
date -d STRING
Converts a STRING (e.g. "01241040") into an RFC compliant data string
and outputs it. It consists of the delivered data and time,
•
date -s STRING
Sets the system time that is delivered with STRING (e.g. "01241045")
•
date -r FILE
Shows the last modification in the file FILE
•
date -u
Sets the system time to Greenwich Time and displays it
Example:
date -d 05131045
Sun May 13 10:45:00 MESZ 2007