diff options
-rw-r--r-- | op-mode-definitions/show-date.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/op-mode-definitions/show-date.xml b/op-mode-definitions/show-date.xml new file mode 100644 index 000000000..0edb4b1ff --- /dev/null +++ b/op-mode-definitions/show-date.xml @@ -0,0 +1,30 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="show"> + <children> + <node name="date"> + <properties> + <help>Show system time and date</help> + </properties> + <command>/bin/date</command> + <children> + <node name="utc"> + <properties> + <help>Show system date and time as Coordinated Universal Time</help> + </properties> + <command>/bin/date -u</command> + <children> + <node name="maya"> + <properties> + <help>Show UTC date in Maya calendar format</help> + </properties> + <command>${vyatta_bindir}/maya-date.py $(date +%s)</command> + </node> + </children> + </node> + </children> + </node> + + </children> + </node> +</interfaceDefinition> |