From b9bf21dca8ed7c7c196e1d1713689f7a342a54d7 Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期一, 29 七月 2024 01:43:12 +0800
Subject: [PATCH] 修改订阅的自由流通市值/输出撤单原因

---
 utils/tool.py |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/utils/tool.py b/utils/tool.py
index a30de52..6a6b2f6 100644
--- a/utils/tool.py
+++ b/utils/tool.py
@@ -53,6 +53,12 @@
     time_str = datetime.datetime.now().strftime("%H:%M:%S")
     return time_str
 
+def get_now_time_with_ms_str():
+    now = datetime.datetime.now()
+    ms = int(now.microsecond / 1000)
+    time_str = now.strftime(f"%H:%M:%S.{ms:03d}")
+    return time_str
+
 
 def get_now_datetime_str():
     time_str = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
@@ -416,4 +422,8 @@
 
 
 if __name__ == "__main__":
-    print(is_sz_code("0000"))
+    print(get_now_time_with_ms_str())
+    print(get_now_time_with_ms_str())
+    print(get_now_time_with_ms_str())
+    time.sleep(0.001)
+    print(get_now_time_with_ms_str())

--
Gitblit v1.8.0