clock-helper-cli

A clock helper for querying the time of startup and shutdown

Usage no npm install needed!

<script type="module">
  import clockHelperCli from 'https://cdn.skypack.dev/clock-helper-cli';
</script>

README

clock-helper-cli

npm version

A clock helper for querying the time of startup and shutdown

Installation

$ npm install -g clock-helper-cli

Usage

$ clock-helper --help

  Usage
    $ clock-helper

  Options
    --startup   Only show the timeline of system startup
    --shutdown  Only show the timeline of system shutdown
    --desc      Sort the timeline in descending order
    --uniq      Get all unique dates in terms of day by the earliest/latest time

  Example
    $ clock-helper
    $ clock-helper --startup
    $ clock-helper --shutdown
    $ clock-helper --desc
    $ clock-helper --uniq=earliest
    $ clock-helper --uniq=latest

$ clock-helper

Startup history:
2020-01-31 19:31:00
2020-02-02 16:49:00
2020-02-02 17:18:00
2020-02-02 21:12:00
2020-02-04 09:16:00
2020-02-08 20:30:00

Shutdown history:
2020-02-02 17:18:00
2020-02-02 21:10:00
2020-02-03 23:22:00

$ clock-helper --shutdown --uniq=latest

License

MIT © Qingrong Ke