This commit is contained in:
yumoqing 2023-08-17 16:14:02 +08:00
parent 1280d9ba33
commit 1801a8d467
2 changed files with 9 additions and 1 deletions

View File

@ -214,6 +214,14 @@ def is_monthend(dt):
return False
def is_match_pattern(pattern, strdate):
"""
R:代表实时
D代表日
W[0-6]代表周日到周六
M[00-31]:代表月末月到某一天
S[1-3]-[00-31]:代表季度第几个月的第几天
Y[1-12]-[00-31]:代表一年中的某个月的某一天
"""
if pattern == 'D':
return True
dt = str2date(strdate)

View File

@ -1 +1 @@
__version__ = '5.1.26'
__version__ = '5.1.27'