diff --git a/man/wtmpdb.8.xml b/man/wtmpdb.8.xml index 558e9ba..014d05f 100644 --- a/man/wtmpdb.8.xml +++ b/man/wtmpdb.8.xml @@ -192,6 +192,27 @@ + + + + FORMAT + + + + Display timestamps in the specified + FORMAT. The format can be + notime, + short, + full, or + iso. + notime will not display times at + all, short is the default option, + full will display the full times + and dates, and iso will display + times in ISO-8601 format. + + + TIME must be in the format diff --git a/src/wtmpdb.c b/src/wtmpdb.c index cdb03e6..aac7b5b 100644 --- a/src/wtmpdb.c +++ b/src/wtmpdb.c @@ -541,6 +541,9 @@ usage (int retval) fputs (" -t, --until TIME Display who was logged in until TIME\n", output); fputs (" -w, --fullnames Display full IP addresses and user and domain names\n", output); fputs (" -x, --system Display system shutdown entries\n", output); + fputs (" --time-format FORMAT Display timestamps in the specified FORMAT:\n", output); + fputs (" notime|short|full|iso\n", output); + fputs (" [username...] Display only entries matching these arguments\n", output); fputs (" [tty...] Display only entries matching these arguments\n", output); fputs ("TIME must be in the format \"YYYY-MM-DD HH:MM:SS\"\n", output);