mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
add git, syslog, and cef timestamp tests
This commit is contained in:
@ -18,6 +18,20 @@ class MyTests(unittest.TestCase):
|
|||||||
# C locale format conversion, or date cli command in C locale with non-UTC tz
|
# C locale format conversion, or date cli command in C locale with non-UTC tz
|
||||||
'Tue Mar 23 16:12:11 2021': {'string': 'Tue Mar 23 16:12:11 2021', 'format': 1000, 'naive': 1616541131, 'utc': None},
|
'Tue Mar 23 16:12:11 2021': {'string': 'Tue Mar 23 16:12:11 2021', 'format': 1000, 'naive': 1616541131, 'utc': None},
|
||||||
'Tue Mar 23 16:12:11 IST 2021': {'string': 'Tue Mar 23 16:12:11 IST 2021', 'format': 1000, 'naive': 1616541131, 'utc': None},
|
'Tue Mar 23 16:12:11 IST 2021': {'string': 'Tue Mar 23 16:12:11 IST 2021', 'format': 1000, 'naive': 1616541131, 'utc': None},
|
||||||
|
# Git date output
|
||||||
|
'Thu Mar 5 09:17:40 2020 -0800': {'string': 'Thu Mar 5 09:17:40 2020 -0800', 'format': 1100, 'naive': 1583428660, 'utc': None},
|
||||||
|
# ISO Format with UTC (found in syslog 5424)
|
||||||
|
'2003-10-11T22:14:15.003Z': {'string': '2003-10-11T22:14:15.003Z', 'format': 1300, 'naive': 1065935655, 'utc': 1065910455},
|
||||||
|
# ISO Format without TZ (found in syslog 5424)
|
||||||
|
'2003-10-11T22:14:15.003': {'string': '2003-10-11T22:14:15.003', 'format': 1310, 'naive': 1065935655, 'utc': None},
|
||||||
|
# CEF Format with UTC
|
||||||
|
'Nov 08 2022 12:30:00.111 UTC': {'string': 'Nov 08 2022 12:30:00.111 UTC', 'format': 1400, 'naive': 1667939400, 'utc': 1667910600},
|
||||||
|
# CEF Format without TZ
|
||||||
|
'Nov 08 2022 12:30:00.111': {'string': 'Nov 08 2022 12:30:00.111', 'format': 1410, 'naive': 1667939400, 'utc': None},
|
||||||
|
# CEF Format with UTC without microseconds
|
||||||
|
'Nov 08 2022 12:30:00 UTC': {'string': 'Nov 08 2022 12:30:00 UTC', 'format': 1420, 'naive': 1667939400, 'utc': 1667910600},
|
||||||
|
# CEF Format without TZ or microseconds
|
||||||
|
'Nov 08 2022 12:30:00': {'string': 'Nov 08 2022 12:30:00', 'format': 1430, 'naive': 1667939400, 'utc': None},
|
||||||
# en_US.UTF-8 local format (found in who cli output)
|
# en_US.UTF-8 local format (found in who cli output)
|
||||||
'2021-03-23 00:14': {'string': '2021-03-23 00:14', 'format': 1500, 'naive': 1616483640, 'utc': None},
|
'2021-03-23 00:14': {'string': '2021-03-23 00:14', 'format': 1500, 'naive': 1616483640, 'utc': None},
|
||||||
# Windows english format (found in dir cli output)
|
# Windows english format (found in dir cli output)
|
||||||
|
Reference in New Issue
Block a user