ticktock-utils 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.5
2
+ Name: ticktock_utils
3
+ Version: 0.1.0
4
+ Summary: 一个简单的时间处理工具库
5
+ Author-email: Your Name <you@example.com>
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Programming Language :: Python :: 3
11
+ Requires-Python: >=3.8
12
+ Description-Content-Type: text/markdown
13
+
14
+ # my_time
15
+
16
+ 一个超级简单、轻量级的 Python 时间处理库。支持年月日、时分秒的获取,还自带贴心的**报错机制**!
17
+
18
+ ## 🚀 为什么要有它?
19
+
20
+ 因为 Python 自带的 `datetime` 模块对新手来说太庞大了,我专门做了这个库,让你用**最简单的方式**拿到时间,并且**不用担心输错数字**。
21
+
22
+ ## 📦 安装
23
+
24
+ ```bash
25
+ pip install my_time
26
+
27
+ ## Quick Start
28
+ import my_time
29
+
30
+ # 1. 拿到今天的年月日
31
+ year, month, day = my_time.get_ymd()
32
+ print(f"今天是 {year} 年 {month} 月 {day} 日")
33
+
34
+ # 2. 拿到当前的时分秒
35
+ hour, minute, second = my_time.get_hms()
36
+ print(f"现在是 {hour}:{minute}:{second}")
37
+
38
+ # 3. 拿到一个“完美”的日期字符串
39
+ date_str = my_time.format_date("%Y年%m月%d日")
40
+ print(date_str)
41
+
@@ -0,0 +1,4 @@
1
+ ticktock_utils-0.1.0.dist-info/METADATA,sha256=Lmmj60JOYI9RYXvemM8S0qS5VHe6nLIFV0we4AJbUo0,1193
2
+ ticktock_utils-0.1.0.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
3
+ ticktock_utils-0.1.0.dist-info/licenses/LICENSE,sha256=oCZIQWZ1opdP6R6SPehNu4DrL-jxQ37zbyPIwpXrRoc,1084
4
+ ticktock_utils-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 [李皓]
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.