mirror of
https://gitee.com/houhuan/TrendRadar.git
synced 2026-05-01 01:12:42 +08:00
v4.0.0 大大大更新
This commit is contained in:
@@ -283,13 +283,13 @@ class DateParser:
|
||||
date: datetime对象
|
||||
|
||||
Returns:
|
||||
文件夹名称,格式: YYYY年MM月DD日
|
||||
文件夹名称,格式: YYYY-MM-DD
|
||||
|
||||
Examples:
|
||||
>>> DateParser.format_date_folder(datetime(2025, 10, 11))
|
||||
'2025年10月11日'
|
||||
'2025-10-11'
|
||||
"""
|
||||
return date.strftime("%Y年%m月%d日")
|
||||
return date.strftime("%Y-%m-%d")
|
||||
|
||||
@staticmethod
|
||||
def validate_date_not_future(date: datetime) -> None:
|
||||
|
||||
Reference in New Issue
Block a user