dongzhaorui %!s(int64=3) %!d(string=hai) anos
pai
achega
d521a5c9e7
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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"):