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

add google big table time format

This commit is contained in:
Kelly Brazil
2022-12-13 13:10:34 -08:00
parent 4c5caa7b86
commit b063f1bfb4
2 changed files with 10 additions and 1 deletions

View File

@ -44,6 +44,10 @@ class MyTests(unittest.TestCase):
'3/22/2021, 1:15:51 PM (Coordinated Universal Time)': {'string': '3/22/2021, 1:15:51 PM (Coordinated Universal Time)', 'format': 1705, 'naive': 1616444151, 'utc': 1616418951},
# Windows english format with UTC tz (found in systeminfo cli output)
'3/22/2021, 1:15:51 PM (UTC+0000)': {'string': '3/22/2021, 1:15:51 PM (UTC+0000)', 'format': 1710, 'naive': 1616444151, 'utc': 1616418951},
# Google Big Table format with no timezone:
'1970/01/01-01:00:00.000000': {'string': '1970/01/01-01:00:00.000000', 'format': 1750, 'naive': 32400, 'utc': None},
# Google Big Table format with timezone:
'1970/01/01-01:00:00.000000+00:00': {'string': '1970/01/01-01:00:00.000000+00:00', 'format': 1755, 'naive': 32400, 'utc': 3600},
# Common Log Format
'10/Oct/2000:13:55:36 -0700': {'string': '10/Oct/2000:13:55:36 -0700', 'format': 1800, 'naive': 971211336, 'utc': None},
'10/Oct/2000:13:55:36 -0000': {'string': '10/Oct/2000:13:55:36 -0000', 'format': 1800, 'naive': 971211336, 'utc': 971186136},