1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

add naive datetime calculation info to docs

This commit is contained in:
Kelly Brazil
2021-03-22 20:22:35 -07:00
parent a058f6c174
commit 0a4de2d3a1
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,8 @@ jc - JSON CLI output utility `last` and `lastb` command output parser
Supports -w and -F options. Supports -w and -F options.
Calculated epoch time fields are naive (i.e. based on the local time of the system the parser is run on) since there is no timezone information in the `last` command output.
Usage (cli): Usage (cli):
$ last | jc --last $ last | jc --last

View File

@ -2,6 +2,8 @@
# jc.parsers.upower # jc.parsers.upower
jc - JSON CLI output utility `upower` command output parser jc - JSON CLI output utility `upower` command output parser
Calculated epoch time fields are naive (i.e. based on the local time of the system the parser is run on) since there is no unambiguous timezone information in the `upower` command output.
Usage (cli): Usage (cli):
$ upower -d | jc --upower $ upower -d | jc --upower
@ -74,7 +76,6 @@ Examples:
"status": "charging" "status": "charging"
} }
], ],
"updated_epoch": 1328841735,
"updated_seconds_ago": 1 "updated_seconds_ago": 1
} }
] ]
@ -157,7 +158,7 @@ Returns:
"native_path": string, "native_path": string,
"power_supply": boolean, "power_supply": boolean,
"updated": string, "updated": string,
"updated_epoch": integer, # as UTC. Works best with C locale. null if conversion fails "updated_epoch": integer, # works best with C locale. null if conversion fails
"updated_seconds_ago": integer, "updated_seconds_ago": integer,
"has_history": boolean, "has_history": boolean,
"has_statistics": boolean, "has_statistics": boolean,