From 57028906b442109dfe22a33dc76fd2addd1d38ae Mon Sep 17 00:00:00 2001 From: inportb Date: Mon, 24 Apr 2023 21:05:55 -0400 Subject: [PATCH] Improved date parsing --- util.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/util.py b/util.py index bbb3b50..1656318 100644 --- a/util.py +++ b/util.py @@ -166,13 +166,13 @@ class SyncProxy(object): return value re_dt_fileman = r'(?P(\d{3})(\d{2})(\d{2})(?:\.(\d{2})?(\d{2})?(\d{2})?)?)' # George Timson's format -re_dt_today = r'(?PT)' # today -re_dt_now = r'(?PN)' # now +re_dt_today = r'(?PTODAY|T)' # today +re_dt_now = r'(?PNOW|N)' # now re_dt_mdy = r'(?P(\d{1,2})[^\w@?]+(\d{1,2})[^\w@?]+(\d{4}|\d{2})\s*)' # m/d/yy, m/d/yyyy re_dt_ymd = r'(?P(\d{4})[^\w@?]+(\d{1,2})[^\w@?]+(\d{1,2})\s*)' # yyyy/m/d re_dt_yyyymmdd = r'(?P(\d{4})(\d{2})(\d{2}))' # yyyymmdd re_dt_Mdy = r'(?P([A-Z]{3,})[^\w@?]+(\d{1,2})[^\w@?]+(\d{4}|\d{2})\s*)' # M/d/yy, M/d/yyyy -re_dt_dMy = r'(?P((\d{1,2})[^\w@?]+[A-Z]{3,})[^\w@?]+(\d{4}|\d{2})\s*)' # d/M/yy, d/M/yyyy +re_dt_dMy = r'(?P(\d{1,2})[^\w@?]+([A-Z]{3,})[^\w@?]+(\d{4}|\d{2})\s*)' # d/M/yy, d/M/yyyy re_dt_md = r'(?P(\d{1,2})[^\w@?]+(\d{1,2})\s*)' # m/d re_dt_offset = r'(?P([-+]\d+)(H|W|M)?)' # +#U re_dt_time = r'(?:@?(?P