uptime: add since option

The --since or -s option will show the time since the host was online.
Reference(s):
http://www.freelists.org/post/procps/Patch-Added-since-option-to-uptime

Signed-off-by: Craig Small <csmall@enc.com.au>
This commit is contained in:
Frank Fesevur
2012-12-26 23:14:09 +11:00
committed by Craig Small
parent 6c67c8d27a
commit a705fdcb15
2 changed files with 35 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
.\" -*-Nroff-*-
.\"
.TH UPTIME "1" "June 2011" "procps-ng" "User Commands"
.TH UPTIME "1" "December 2012" "procps-ng" "User Commands"
.SH NAME
uptime \- Tell how long the system has been running.
.SH SYNOPSIS
@@ -28,6 +28,9 @@ the time.
\fB\-h\fR, \fB\-\-help\fR
display this help text
.TP
\fB\-s\fR, \fB\-\-since\fR
system up since, in yyyy-mm-dd MM:HH:SS format
.TP
\fB\-V\fR, \fB\-\-version\fR
display version information and exit
.SH FILES