A chinese time str normalization package
Project description
简介 Description
一个中文时间标准化库。
A chinese time normalization module.
功能
绝对时间转换:
'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.2.tar.gz
(53.2 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.2-py3-none-any.whl
(61.7 kB
view details)
File details
Details for the file timeworker-1.2.tar.gz.
File metadata
- Download URL: timeworker-1.2.tar.gz
- Upload date:
- Size: 53.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d2db9d6e86e105309aac471756eb26ef55e1804933940cbc76933e1693fbe6a
|
|
| MD5 |
106f30ef3ad3633e73d512020cc1eace
|
|
| BLAKE2b-256 |
9eac2d754408b8a1d559bb224f5d0c7f0a0699ab1fa8aa0581a0d3cfe9884fab
|
File details
Details for the file timeworker-1.2-py3-none-any.whl.
File metadata
- Download URL: timeworker-1.2-py3-none-any.whl
- Upload date:
- Size: 61.7 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 |
6bb81527301f04ab1a85e175632b0afeb3cd5d3ad256f0c41934ed0f07c6fa71
|
|
| MD5 |
7bc907cd7bae26dd273ed2899ababc05
|
|
| BLAKE2b-256 |
ff6241f3aaf8c9326da4646041d4e38cc82963cf01c76ff215a5cf3c2a4f3280
|