A module to make time easier
Project description
PyesyTime
A module to make time easier 一个让时间更好获取的模块
Notice:The lastest version is 2022.3 注意:最新版本2022.3
0. Name 名称
Pyesytime
python easy time
1.Download 下载
pip install pyesytime==2022.3
2. Import Package 导入
import pyesytime
3.What‘s New 更新内容
(1) You can enter a parameter in ONLY_HOUR_12_ENGLISH and ONLY_HOUR_12_CHINESE
你可以在 ONLY_HOUR_12_ENGLISH 和 ONLY_HOUR_12_CHINESE中输入参数
(2) More functions have been added, as detailed below
添加了更多函数,详情请见下方
4. Function 函数
(1) ALL_IN_ONE()
Return all the time like this: 2022-01-01 00:00:00
像这样显示所有时间:2022-01-01 00:00:00
(2)YEAR_MONTH_DAY_LINE()
Return the time like this: 2022-01-01
像这样显示所有时间:2022-01-01
(3)YEAR_MONTH_DAY_DIAGONAL()
Return the time like this: 2022/01/01
像这样显示所有时间:2022/01/01
(4)HOUR_MINUTE_SECOND_24_COLON()
Return the time like this: 13:00:00
像这样显示所有时间:13:00:00
(5)HOUR_MINUTE_SECOND_12_COLON_ENGLISH()
Return the time like this: 1:00:00 pm
像这样显示所有时间:1:00:00 pm
(6)HOUR_MINUTE_SECOND_12_COLON_ENGLISH()
Return the time like this: 下午 1:00:00
像这样显示所有时间:下午 1:00:00
(7)ONLY_HOUR_24()
Return the time like this: 13
像这样显示所有时间:13
(8)ONLY_HOUR_12_ENGLISH(hour) (NEW!)
Return the time like this: 1 pm
像这样显示所有时间:1 pm
You can enter a time and change it into this.
你可以写入一个数字参数让函数来转换显示形式
(9)ONLY_HOUR_12_CHINESE(hour) (NEW!)
Return the time like this: 下午1时
像这样显示所有时间:下午1时
You can enter a time and change it into this.
你可以写入一个数字参数让函数来转换显示形式
(10)ISO_STANDARD_CALENDAR_AS_TUPLE() (NEW!)
Return the tuple of time as ISO standard calendar: (2022, 1, 1)
像这样以元组类型显示ISO标准日历时间:(2022, 1, 1)
(11)ISO_STANDARD_CALENDAR_AS_LIST() (NEW!)
Return the list of time as ISO standard calendar: [2022, 1, 1]
像这样以列表类型显示ISO标准日历时间:[2022, 1, 1]
(12)NOW_WEEKDAY_ENGLISH() (NEW!)
Return the weekday as English like this: Monday
像这样用英文返回今天的星期:Monday
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyesytime-2022.3.tar.gz.
File metadata
- Download URL: pyesytime-2022.3.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73ee8a3140ce3a4d947edad5e17c9178b3cc6e933bce75646db8b0d46ce00f16
|
|
| MD5 |
c59c68b8405021f7c26f5889a9cfa24d
|
|
| BLAKE2b-256 |
830758f366d7522ef08eb37bc834f16342ac6b3ee4166ede4a7e03f25f548587
|
File details
Details for the file pyesytime-2022.3-py3-none-any.whl.
File metadata
- Download URL: pyesytime-2022.3-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f788921d6f312d36623b59cb5f35131835a8db53cfe192eaf236de798add0eb4
|
|
| MD5 |
362a4372fb729292f923f05deea88341
|
|
| BLAKE2b-256 |
df943f3c1601a441df86fb1629a57c9db2761662a06dd347dff0da3c3a848a88
|