A chinese time str normalization package
Project description
简介 Description
一个中文时间标准化库。
A chinese time string normalization package.
功能
绝对时间转换:
'2020年2月' --> ['2020-02-01', '2020-02-29']
'去年1月30日至今年三月二号' --> ['2021-01-30', '2022-03-02']
相对时间转换
'最近五天' --> ['2022-12-03', '2022-12-08']
安装方法 install
pip install timeworker
使用方法 Usage
import timeworker
time_str = '最近五天'
timeworker.parse(time_str)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
timeworker-1.3.tar.gz
(53.3 kB
view details)
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
timeworker-1.3-py3-none-any.whl
(62.4 kB
view details)
File details
Details for the file timeworker-1.3.tar.gz.
File metadata
- Download URL: timeworker-1.3.tar.gz
- Upload date:
- Size: 53.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba2ca852a494efe9a0a202e73ddc503ad13cf669ecb2841fb02ad2c172877abb
|
|
| MD5 |
89e7fc88edc90494210184d19345c8a6
|
|
| BLAKE2b-256 |
52d613fc4cf1592eb8b62e19f958c40d08ee629b60ff6a09c7d1824a99f0ab7d
|
File details
Details for the file timeworker-1.3-py3-none-any.whl.
File metadata
- Download URL: timeworker-1.3-py3-none-any.whl
- Upload date:
- Size: 62.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f86706ed9a26ab58b55870e00f8d1f2213299b2750d9bd05c3678ea0386a92f2
|
|
| MD5 |
3ebdfd0500804dce2d47384a487fb634
|
|
| BLAKE2b-256 |
abc5b96649e34d951afaf6240871b3898f5bcad90c9a5abd760c803602d2df7c
|