From ba1908b85d61c241d8722359c07b89c0f41953fc Mon Sep 17 00:00:00 2001 From: cxy <1295423769@qq.com> Date: Tue, 17 Sep 2024 19:05:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 utils.py diff --git a/utils.py b/utils.py new file mode 100644 index 0000000..d3264e8 --- /dev/null +++ b/utils.py @@ -0,0 +1,8 @@ +import time + + +def get_time(): + time_str = time.strftime("%Y{}%m{}%d{} %X") + return time_str.format("年", "月", "日") + +