1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00
Commit Graph

1617 Commits

Author SHA1 Message Date
1d41c46cc7 normalize datetime string to remove all timezones except UTC 2021-03-24 17:01:56 -07:00
a5c444587b add before and after midnight date tests 2021-03-24 15:13:10 -07:00
a56f471be9 update fixture to use UTC for better testing 2021-03-24 15:05:22 -07:00
6a6b26ed8d fix 12 to 24 hour conversion for midnight cases 2021-03-24 15:04:39 -07:00
f62446c152 rename variables. add another european time format 2021-03-24 15:04:09 -07:00
56011f1f17 updated upower examples 2021-03-24 14:14:22 -07:00
6d44091c80 refactor parse_datetime_to_timestamp() 2021-03-24 14:01:06 -07:00
440c458eb4 no need for ternary clause 2021-03-24 12:57:19 -07:00
798250af61 use jc.utils.parse_datetime_to_timestamp() function for timestamp creation 2021-03-24 12:49:53 -07:00
c762de29c6 doc updates 2021-03-24 12:47:57 -07:00
0701e65e97 add parse_datetime_to_timestamp() function 2021-03-24 12:36:54 -07:00
209d54e8b5 add hour_24 to schema docs 2021-03-24 07:39:11 -07:00
2b38462de7 update examples 2021-03-23 14:59:03 -07:00
1e8e553316 add hour_24 field 2021-03-23 14:47:44 -07:00
ab42e6bb15 formatting 2021-03-23 14:10:42 -07:00
6802884540 ensure period is always uppercase in dict value. update period documentation 2021-03-23 14:04:36 -07:00
7cb8577b96 correct epoch_utc calculation. Fix for 12 hour vs. 24 hour representation 2021-03-23 13:55:23 -07:00
55810ccd1f set epoch_dt conversion again if not C locale 2021-03-22 22:10:35 -07:00
f9921720cd revert to local testing for naive datetime objects 2021-03-22 22:01:07 -07:00
cda1ebd271 try tzset() 2021-03-22 21:53:50 -07:00
6901e4a23a try setting timezone env variable before tests to ensure it is the same on all test systems 2021-03-22 21:49:26 -07:00
6bc21d3c73 fix date parser tests - local tests only since timezones may not match on github actions VMs 2021-03-22 21:05:39 -07:00
1ef231e26a add date parser updates 2021-03-22 20:57:36 -07:00
3cd43f0f98 formatting 2021-03-22 20:57:16 -07:00
1565019966 fix weekday numbering to be ISO 8601 compliant. Add naive calculated epoch timestamp field 2021-03-22 20:56:57 -07:00
0a4de2d3a1 add naive datetime calculation info to docs 2021-03-22 20:22:35 -07:00
a058f6c174 added naive epoch calculation info to docs 2021-03-22 20:21:46 -07:00
d8e5d03b01 naive updated_epoch timestamp calculation added 2021-03-22 20:21:12 -07:00
9dc62eff2e remove epoch conversions 2021-03-21 15:43:37 -07:00
d4fea17c57 use UTC when calculating epoch timestamp. reset time locale to default after changing 2021-03-21 14:03:36 -07:00
3dd7a5b77e add upower docs 2021-03-19 11:00:50 -07:00
d77c90a3ba fix quoted values in detail level. Add examples 2021-03-19 10:43:20 -07:00
01f0c20df0 add sample using C locale timestamp 2021-03-18 16:59:46 -07:00
aafbe576b3 working parser and processor 2021-03-18 16:59:19 -07:00
bd68ad4034 don't modify detail_type value since it is no longer a key 2021-03-17 14:31:51 -07:00
bfee017c13 made the schema more explicit by hardcoding more items. still working on the schema 2021-03-17 14:21:19 -07:00
61f532cfd0 working history list 2021-03-17 13:30:47 -07:00
58dbbb75b6 simplified logic 2021-03-17 13:10:52 -07:00
8d88b91fcf move if statements and generalize the history detail detection 2021-03-17 12:49:48 -07:00
ad39fc6029 working upower parser. history lines are ignored 2021-03-17 11:26:06 -07:00
89f1fd96e6 add acpi tests 2021-03-16 12:12:01 -07:00
bd425f2493 version bump to v1.15.0. Add acpi docs 2021-03-16 11:45:56 -07:00
46962ff02a remove redundant lines 2021-03-12 16:45:15 -08:00
e4cb88b051 remove unneeded line-state assignment 2021-03-12 12:47:59 -08:00
32840703dc remove redundant code 2021-03-12 08:55:04 -08:00
1f7aafd041 fix for full charge batter case. Clean up battery object logic 2021-03-12 08:45:32 -08:00
7378d5dce4 remove comment 2021-03-11 21:06:24 -08:00
84f76866cd working process function 2021-03-11 21:05:29 -08:00
322da9ea6a working parser 2021-03-11 20:43:31 -08:00
58645301ec add acpi command parser 2021-03-11 19:55:47 -08:00