User Guide
DDOC0099-000-AH
DTS1 CSfC
12 - 46
Command Line Interface
© 2020 Curtiss-Wright Defense Solutions
Revision 5.0
12.3.29
sysdate
Description
The sysdate command allows for configuration and retrieval of the time and date. When no options
are given, the current date is printed.
Syntax
sysdate
[
-h
|
--help
|
--version
]
sysdate
[
-d
] [
-t
]
Options
-h
,
--help
............................Print help message.
--version
............................Print program version.
-d
,
--date
............................Set date. (Year/Month/Day)
-t
,
--time
............................Set time. (Hour:Minute:Second)
Example:
View current time and date
Line Identifier
DATE......................................Reports the current date and time
Fields
date=
<date> .........................Reports system date
time=
<time> .........................Reports system time
status=
<sts> .......................Summary status for the given line.
Enumerated types:
<date>....................................System date as year/month/day (Ex: 2012/01/07)
<time> ....................................24-hour system time as Hour:Minute:Second (Ex: 23:05:06)
<sts> ......................................Status message (OK, ERR "<str>")
<str> .......................................Text string
<summary> ............................Command status summary (OK, ERR)
Example:
Set current time and date
Line Identifier
SETDATE...............................Reports date/time configuration status
Fields
status
=<sts> .......................Summary status for the given line.
Enumerated types:
(See above examples in fields)
cw_dts>
sysdate
[sysdate]
DATE: date=<date> time=<time> status=<sts>
[!sysdate] <summary>
cw_dts>
sysdate -d 2018/04/01 -t 00:00:01
[sysdate]
SETDATE: status=<sts>
[!sysdate] <summary>