[libreoffice] Add automation (#354)

This commit is contained in:
Nemo
2024-06-23 16:31:20 +05:30
committed by GitHub
parent cce78946ec
commit 17a5b34816
2 changed files with 28 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ def parse_month_year_date(text: str, formats: list[str] = frozenset([
def parse_datetime(text: str, formats: list[str] = frozenset([
"%Y-%m-%d %H:%M:%S", # 2023-05-01 08:32:34
"%Y-%m-%dT%H:%M:%S", # 2023-05-01T08:32:34
"%d-%b-%Y %H:%M", # 01-May-2023 08:32
"%Y-%m-%d %H:%M:%S %z", # 2023-05-01 08:32:34 +0900
"%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