mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
uptime: Add -s/--since option to output only when the system came online
This also matches Linux and the BSDs.
This commit is contained in:
parent
8faeb13036
commit
7bcb560060
2 changed files with 13 additions and 1 deletions
|
@ -16,6 +16,7 @@ This information includes when the system came online and how long it has been u
|
|||
## Options
|
||||
|
||||
* `-p`, `--pretty`: Output only the uptime, in human-readable format.
|
||||
* `-s`, `--since`: Output only the datetime when the system came online.
|
||||
|
||||
## Examples
|
||||
|
||||
|
@ -28,3 +29,8 @@ $ uptime
|
|||
$ uptime -p
|
||||
Up 2 minutes, 20 seconds
|
||||
```
|
||||
|
||||
```sh
|
||||
$ uptime -s
|
||||
2024-01-24 06:23:27
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue