398bbac48c
simplify return value for parse_datetime_to_timestamp()
2021-03-29 10:23:52 -07:00
ea71a42bbd
formatting
2021-03-29 09:43:19 -07:00
1c16d25b17
add version option (-v) and copyright information. add 'ensure_ascii=False' to json dumps to properly show UTF-8 copyright character
2021-03-29 09:41:15 -07:00
9d12ded889
help description change
2021-03-26 16:32:17 -07:00
5312701515
add - make all external python requirements optional
2021-03-26 16:29:10 -07:00
808c7bc0a9
make xmltodict library optional
2021-03-26 16:14:35 -07:00
4d394015f4
make ruamel.yaml library optional
2021-03-26 16:10:28 -07:00
3638298af8
make pygments library optional
2021-03-26 15:54:45 -07:00
5f00973e40
remove parenthesis to normalize text for naive timezone detection
2021-03-26 15:38:57 -07:00
0f6e2c14fc
simplify timestamp failure logic
2021-03-26 14:57:19 -07:00
51813da619
add offset timezones. fix timestamp logic on conversion failure
2021-03-26 14:56:45 -07:00
e7751322ea
formatting
2021-03-26 14:55:47 -07:00
26ef298437
change return to always include the entire object but all keys may be None if conversion fails
2021-03-26 14:55:16 -07:00
badaf8ce73
comment formatting
2021-03-26 14:00:33 -07:00
b123a62203
move locale change formats to the end of the list
2021-03-26 13:11:34 -07:00
cfd77e4252
reset locale to None on exception
2021-03-26 13:01:12 -07:00
38f814072e
better normalization of datetime string. better UTC detection. More formats supported with detected locale.
2021-03-26 11:55:12 -07:00
a0db7754e3
add nixos install info
2021-03-26 09:32:49 -07:00
f07620afc7
move version to jc.__init__.py
...
add -h option for help instead of always showing on error
use jc.utils.error_message for the following errors: missing/incorrect arguments, parser not found, missing piped data
2021-03-26 09:28:03 -07:00
c1b0d27752
remove old commented commands
2021-03-25 20:45:38 -07:00
430a5108aa
move all tests to github actions
2021-03-25 20:42:58 -07:00
111ce92fc9
attempt all tests in github actions with timezone correction
2021-03-25 20:37:35 -07:00
c851e8a58d
force github action
2021-03-25 20:33:25 -07:00
39f4bcd9b4
Change Windows timezone
...
use "Pacific Standard Time"
2021-03-25 20:30:13 -07:00
4a610c4c81
force github action
2021-03-25 19:57:32 -07:00
89ee11945d
Change timezone provider
...
uses: szenius/set-timezone@v1.0
2021-03-25 19:55:21 -07:00
dadb09b74a
force github action
2021-03-25 19:52:43 -07:00
1b1f638b97
Change timezone change provider
...
change to actions/set-timezone-action
2021-03-25 19:49:03 -07:00
794fc4ed44
add parse_datetime_to_timestamp() tests
2021-03-25 19:43:16 -07:00
72f735bf92
Set Timezone to America/Los_Angeles
...
Using zcong1993/setup-timezone
2021-03-25 19:42:02 -07:00
912877f25a
additional timezone info
2021-03-25 15:34:54 -07:00
2772c5ae43
formatting
2021-03-25 15:10:07 -07:00
a7ad24d2cb
Add dir parser
...
Add usage commands
Fix example options
update dir.md
2021-03-25 18:09:47 -04:00
a364a6a9fa
add note regarding calculated timestamps
2021-03-25 15:08:23 -07:00
7b2dc86a8d
update last example with new timestamp fields
2021-03-25 12:07:36 -07:00
ad645636d0
update uptime docs
2021-03-25 11:43:30 -07:00
2f2f297b29
update uptime fixtures with new fields
2021-03-25 11:35:21 -07:00
099ae3fde0
fix issue when there is no data
2021-03-25 11:17:44 -07:00
e9febe98ac
add localtest partition lines for readability
2021-03-25 11:17:01 -07:00
5fbd07cccf
rewrite of uptime parser including new fields
2021-03-25 10:31:12 -07:00
5fed4698c2
update docs and version number
2021-03-24 21:57:04 -07:00
ed7eb0983a
use parse_datetime_to_timestamp function instead of custom format string
2021-03-24 21:51:43 -07:00
90c7e18e5f
update date example
2021-03-24 21:50:32 -07:00
953ab5c3bd
make upower tests local only
2021-03-24 21:29:30 -07:00
699c97d8a0
add last parser info
2021-03-24 21:24:47 -07:00
e4ca0de92a
add upower tests
2021-03-24 21:24:25 -07:00
04745a36b8
doc update
2021-03-24 20:21:06 -07:00
5936940532
rewrite of date parser using datetime library
2021-03-24 20:20:53 -07:00
b3eb064b67
clarify format definition comments
2021-03-24 17:13:01 -07:00
e4b41057e3
update upower fixture names
2021-03-24 17:02:17 -07:00