From 04745a36b84cc79e56bde2a0e92a4ee9ab4a1538 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 24 Mar 2021 20:21:06 -0700 Subject: [PATCH] doc update --- CHANGELOG | 12 +++++++----- jc/utils.py | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 8b65a3ec..67633416 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,11 +3,13 @@ jc changelog 20210316 v1.15.0 - Add acpi parser tested on linux - Add upower parser tested on linux -- Update date parser to make weekday numbering ISO 8601 compliant -- Update date parser to add a calculated (naive) epoch timestamp -- Update date parser to add a calculated timezone-aware epoch_utc timestamp if the date output is in UTC -- Update date parser to always set the period value to uppercase AM or PM -- Update date parser to add an hour_24 field to always express the hour in 24-hour format +- Update date parser: complete rewrite (v2.0) providing many enhancements: + - Mmake weekday numbering ISO 8601 compliant + - Add a calculated naive timestamp + - Add a calculated UTC timestamp (only if date output is in UTC) + - Add several fields, including: hour_24, utc_offset, day_of_year, week_of_year, iso, and timezone_aware +- Update uptime parser to provide datestamps +- Add -h option to display the help text. Piping errors no longer show the help text. 20210305 v1.14.4 - Packaging fix only for binaries and RPMs hosted on https://github.com/kellyjonbrazil/jc-packaging. diff --git a/jc/utils.py b/jc/utils.py index 63af6e16..6e7082d7 100644 --- a/jc/utils.py +++ b/jc/utils.py @@ -133,6 +133,7 @@ def parse_datetime_to_timestamp(data): ] # from https://www.timeanddate.com/time/zones/ + # only removed UTC timezone tz_abbr = ['A', 'ACDT', 'ACST', 'ACT', 'ACWST', 'ADT', 'AEDT', 'AEST', 'AET', 'AFT', 'AKDT', 'AKST', 'ALMT', 'AMST', 'AMT', 'ANAST', 'ANAT', 'AQTT', 'ART', 'AST', 'AT', 'AWDT', 'AWST', 'AZOST', 'AZOT', 'AZST', 'AZT', 'AoE', 'B', 'BNT', 'BOT', 'BRST', 'BRT', 'BST', 'BTT', 'C', 'CAST', 'CAT', 'CCT',