dongzhaorui 3 năm trước cách đây
mục cha
commit
d521a5c9e7
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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"):