[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:
Romain
2024-08-04 19:30:09 +02:00
committed by GitHub
parent 19bb95829f
commit cb0aa83225
2 changed files with 35 additions and 0 deletions

View File

@@ -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.
"""