pyUnit_time 
处理时间模块集合
安装
pip install pyunit-time
使用
from pyunit_time import CharactersTime
if __name__ == '__main__':
nt = CharactersTime()
np = nt.parse('今天晚上8点到明天上午10点之间')
print(np) # ['2019-12-09 20:00:00', '2019-12-10 10:00:00']
np = nt.parse('今年儿童节晚上九点一刻')
print(np) # ['2019-06-01 21:15:00']
np = nt.parse('今天中午十二点')
print(np) # ['2019-12-09 12:00:00']
np = nt.parse('明年春节')
print(np) # ['2020-01-25 00:00:00']
np = nt.parse('下下下个星期五早上7点半')
print(np) # ['2020-01-3 07:30:00']
Metadata
Release files for pyunit-time 2020.3.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyunit_time-2020.3.12-py3-none-any.whl | Python 3 | none | any | Details for pyunit_time-2020.3.12-py3-none-any.whl |
Release files / pyunit_time-2020.3.12-py3-none-any.whl
| Download URL | pyunit_time-2020.3.12-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
425ca1d63367a397bb718b079d3a290b89459f6df6b73038153f5e14d00bca76
|
|
BLAKE2b-256 checksum How to use checksums |
6478b209d217c44d70b6d96e6499f50b76e244ed19573c8e31a877bec2a0ae78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
|
Security for pyunit-time 2020.3.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.