[subversion] Add automation (#360)
Will be used by https://github.com/endoflife-date/endoflife.date/pull/5567. --------- Co-authored-by: Marc Wrobel <marc.wrobel@gmail.com>
This commit is contained in:
@@ -13,6 +13,8 @@ def parse_date(text: str, formats: list[str] = frozenset([
|
||||
"%Y-%m-%d", # 2020-01-01
|
||||
"%m/%d/%Y", # 01/25/2020
|
||||
"%Y/%m/%d", # 2020/01/25
|
||||
"%A %d %B %Y", # Wednesday 1 January 2020
|
||||
"%A %d %b %Y", # Wednesday 1 Jan 2020
|
||||
])) -> datetime:
|
||||
"""Parse a given text representing a date using a list of formats.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user