1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

add parse_timedate_to_timestamp test for format 7300

This commit is contained in:
Kelly Brazil
2021-03-29 21:25:19 -07:00
parent 8d7fa07ffd
commit ba0dd3b9ca

View File

@ -27,7 +27,9 @@ class MyTests(unittest.TestCase):
# C local format (found in stat cli output - linux) non-UTC tz # C local format (found in stat cli output - linux) non-UTC tz
'2019-08-13 18:13:43.555604315 -0400': {'format': 7200, 'timestamp_naive': 1565745223, 'timestamp_utc': None}, '2019-08-13 18:13:43.555604315 -0400': {'format': 7200, 'timestamp_naive': 1565745223, 'timestamp_utc': None},
# C local format (found in stat cli output - linux) UTC # C local format (found in stat cli output - linux) UTC
'2019-08-13 18:13:43.555604315 -0000': {'format': 7200, 'timestamp_naive': 1565745223, 'timestamp_utc': 1565720023} '2019-08-13 18:13:43.555604315 -0000': {'format': 7200, 'timestamp_naive': 1565745223, 'timestamp_utc': 1565720023},
# C locale format (found in timedatectl cli output)
'Wed 2020-03-11 00:53:21 UTC': {'format': 7300, 'timestamp_naive': 1583913201, 'timestamp_utc': 1583888001}
} }
for input_string, expected_output in datetime_map.items(): for input_string, expected_output in datetime_map.items():