[citrix-vad-rss] Add auto method
This commit is contained in:
@@ -54,7 +54,8 @@ def parse_datetime(text: str, formats: list[str] = frozenset([
|
||||
"%Y-%m-%dT%H:%M:%S%z", # 2023-05-01T08:32:34+0900
|
||||
"%Y-%m-%dT%H:%M:%S.%f%z", # 2023-05-01T08:32:34.123456Z
|
||||
"%Y/%m/%d %H:%M:%S", # 2023/05/01 08:32:34
|
||||
"%a %d %b %Y %H:%M:%S %Z", # Wed, 01 Jan 2020 00:00:00 GMT
|
||||
"%a, %d %b %Y %H:%M:%S %z", # Wed, 01 Jan 2020 00:00:00 GMT
|
||||
"%a %d %b %Y %H:%M:%S %z", # Wed 01 Jan 2020 00:00:00 -0400
|
||||
"%Y%m%d%H%M%S", # 20230501083234
|
||||
]), to_utc: bool = True) -> datetime:
|
||||
"""Parse a given text representing a datetime using a list of formats,
|
||||
|
||||
Reference in New Issue
Block a user