dongzhaorui 3 years ago
parent
commit
d521a5c9e7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      find_source/common/tools.py

+ 2 - 2
find_source/common/tools.py

@@ -20,8 +20,8 @@ def get_ms() -> int:
     return int(round(time.time() * 1000))
 
 
-def get_current_date():
-    return datetime.datetime.now().strftime("%Y-%m-%d")
+def get_current_date(fmt="%Y-%m-%d"):
+    return datetime.datetime.now().strftime(fmt)
 
 
 def ms2date(ms: int, fmt="%Y-%m-%d %H:%M:%S"):