Skip to content

Commit

Permalink
Update info adding some date examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo F committed Feb 17, 2024
1 parent 52c8bca commit eedb16c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tuptime-manual.txt
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,8 @@ kernel Name of the kernel
The number of startup sequency is extracted from 'rowid', the signed integer
key that uniquely identifies the row within its table in sqlite.

The bootid value is available since Linux 2.6.20 and FreeBSD 11.0.

For reset all the values, simply delete the database file.

It is possible to query and modify it directly, but it's better to use any of
Expand Down Expand Up @@ -757,6 +759,13 @@ Convert epoch to human datetime:
Preceding conversions uses GNU date, on FreeBSD install "coreutils" and call
them with "gdate".

Examples of using it directly:

tuptime --tsince `date -d "1 day ago" +%s`
tuptime --tuntil `date -d "1 day ago" +%s`
tuptime --tsince `date -d "1 week ago" +%s` --tuntil `date -d "1 day ago" +%s`
tuptime --tat `date -d "1 day ago" +%s`

More info about datetime input formats:
man date
'https://www.gnu.org/software/coreutils/manual/html_node/
Expand Down

0 comments on commit eedb16c

Please sign in to comment.