timedatectl: add 'show' command to display machine-readable output

Closes #9249.
This commit is contained in:
Yu Watanabe
2018-06-14 10:19:08 +02:00
committed by Lennart Poettering
parent 28e1a3ec44
commit ead0adb161
3 changed files with 44 additions and 11 deletions
+2 -1
View File
@@ -696,7 +696,8 @@ int bus_print_property(const char *name, sd_bus_message *m, bool value, bool all
/* Yes, heuristics! But we can change this check
* should it turn out to not be sufficient */
if (endswith(name, "Timestamp") || STR_IN_SET(name, "NextElapseUSecRealtime", "LastTriggerUSec")) {
if (endswith(name, "Timestamp") ||
STR_IN_SET(name, "NextElapseUSecRealtime", "LastTriggerUSec", "TimeUSec", "RTCTimeUSec")) {
char timestamp[FORMAT_TIMESTAMP_MAX];
const char *t;