This commit is contained in:
2026-01-28 16:57:46 +08:00
commit 0fc08732f1
55 changed files with 6548 additions and 0 deletions

18
need/utils.py Normal file
View File

@@ -0,0 +1,18 @@
import datetime
def get_current_time():
data = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')
data = "[" + data + " R] "
return data
def get_current_name():
data = datetime.datetime.now().strftime('%Y-%m-%d-%H-%M-%S-%f')
return data
def get_current_date():
data = datetime.datetime.now().strftime('%Y-%m-%d %H-%M-%S')
return data
def get_current_hour():
data = datetime.datetime.now().strftime('%H.%M.%S')
return data