1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2026-04-24 20:56:11 +02:00
Commit Graph

1274 Commits

Author SHA1 Message Date
Kelly Brazil 953ab5c3bd make upower tests local only 2021-03-24 21:29:30 -07:00
Kelly Brazil 699c97d8a0 add last parser info 2021-03-24 21:24:47 -07:00
Kelly Brazil e4ca0de92a add upower tests 2021-03-24 21:24:25 -07:00
Kelly Brazil 04745a36b8 doc update 2021-03-24 20:21:06 -07:00
Kelly Brazil 5936940532 rewrite of date parser using datetime library 2021-03-24 20:20:53 -07:00
Kelly Brazil b3eb064b67 clarify format definition comments 2021-03-24 17:13:01 -07:00
Kelly Brazil e4b41057e3 update upower fixture names 2021-03-24 17:02:17 -07:00
Kelly Brazil 1d41c46cc7 normalize datetime string to remove all timezones except UTC 2021-03-24 17:01:56 -07:00
Kelly Brazil a5c444587b add before and after midnight date tests 2021-03-24 15:13:10 -07:00
Kelly Brazil a56f471be9 update fixture to use UTC for better testing 2021-03-24 15:05:22 -07:00
Kelly Brazil 6a6b26ed8d fix 12 to 24 hour conversion for midnight cases 2021-03-24 15:04:39 -07:00
Kelly Brazil f62446c152 rename variables. add another european time format 2021-03-24 15:04:09 -07:00
Kelly Brazil 56011f1f17 updated upower examples 2021-03-24 14:14:22 -07:00
Kelly Brazil 6d44091c80 refactor parse_datetime_to_timestamp() 2021-03-24 14:01:06 -07:00
Kelly Brazil 440c458eb4 no need for ternary clause 2021-03-24 12:57:19 -07:00
Kelly Brazil 798250af61 use jc.utils.parse_datetime_to_timestamp() function for timestamp creation 2021-03-24 12:49:53 -07:00
Kelly Brazil c762de29c6 doc updates 2021-03-24 12:47:57 -07:00
Kelly Brazil 0701e65e97 add parse_datetime_to_timestamp() function 2021-03-24 12:36:54 -07:00
Kelly Brazil 209d54e8b5 add hour_24 to schema docs 2021-03-24 07:39:11 -07:00
Kelly Brazil 2b38462de7 update examples 2021-03-23 14:59:03 -07:00
Kelly Brazil 1e8e553316 add hour_24 field 2021-03-23 14:47:44 -07:00
Kelly Brazil ab42e6bb15 formatting 2021-03-23 14:10:42 -07:00
Kelly Brazil 6802884540 ensure period is always uppercase in dict value. update period documentation 2021-03-23 14:04:36 -07:00
Kelly Brazil 7cb8577b96 correct epoch_utc calculation. Fix for 12 hour vs. 24 hour representation 2021-03-23 13:55:23 -07:00
Kelly Brazil 55810ccd1f set epoch_dt conversion again if not C locale 2021-03-22 22:10:35 -07:00
Kelly Brazil f9921720cd revert to local testing for naive datetime objects 2021-03-22 22:01:07 -07:00
Kelly Brazil cda1ebd271 try tzset() 2021-03-22 21:53:50 -07:00
Kelly Brazil 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
Kelly Brazil 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
Kelly Brazil 1ef231e26a add date parser updates 2021-03-22 20:57:36 -07:00
Kelly Brazil 3cd43f0f98 formatting 2021-03-22 20:57:16 -07:00
Kelly Brazil 1565019966 fix weekday numbering to be ISO 8601 compliant. Add naive calculated epoch timestamp field 2021-03-22 20:56:57 -07:00
Kelly Brazil 0a4de2d3a1 add naive datetime calculation info to docs 2021-03-22 20:22:35 -07:00
Kelly Brazil a058f6c174 added naive epoch calculation info to docs 2021-03-22 20:21:46 -07:00
Kelly Brazil d8e5d03b01 naive updated_epoch timestamp calculation added 2021-03-22 20:21:12 -07:00
Kelly Brazil 9dc62eff2e remove epoch conversions 2021-03-21 15:43:37 -07:00
Kelly Brazil d4fea17c57 use UTC when calculating epoch timestamp. reset time locale to default after changing 2021-03-21 14:03:36 -07:00
Kelly Brazil 3dd7a5b77e add upower docs 2021-03-19 11:00:50 -07:00
Kelly Brazil d77c90a3ba fix quoted values in detail level. Add examples 2021-03-19 10:43:20 -07:00
Kelly Brazil 01f0c20df0 add sample using C locale timestamp 2021-03-18 16:59:46 -07:00
Kelly Brazil aafbe576b3 working parser and processor 2021-03-18 16:59:19 -07:00
Kelly Brazil bd68ad4034 don't modify detail_type value since it is no longer a key 2021-03-17 14:31:51 -07:00
Kelly Brazil bfee017c13 made the schema more explicit by hardcoding more items. still working on the schema 2021-03-17 14:21:19 -07:00
Kelly Brazil 61f532cfd0 working history list 2021-03-17 13:30:47 -07:00
Kelly Brazil 58dbbb75b6 simplified logic 2021-03-17 13:10:52 -07:00
Kelly Brazil 8d88b91fcf move if statements and generalize the history detail detection 2021-03-17 12:49:48 -07:00
Kelly Brazil ad39fc6029 working upower parser. history lines are ignored 2021-03-17 11:26:06 -07:00
Kelly Brazil 89f1fd96e6 add acpi tests 2021-03-16 12:12:01 -07:00
Kelly Brazil bd425f2493 version bump to v1.15.0. Add acpi docs 2021-03-16 11:45:56 -07:00
Kelly Brazil 46962ff02a remove redundant lines 2021-03-12 16:45:15 -08:00