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.2.tar.gz
(53.6 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
File details
Details for the file timeworker-1.3.2.tar.gz.
File metadata
- Download URL: timeworker-1.3.2.tar.gz
- Upload date:
- Size: 53.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c6f8ad3c6d7dbede640146b1119b88f286e1161ba71bb355cccd6f64d5f5f1e
|
|
| MD5 |
6fc81b5c2849e292f38e18a83e09a7ce
|
|
| BLAKE2b-256 |
47cecb54e767434de0b96bd7a474a1c637486396aea65b89923922c6fba268a3
|
File details
Details for the file timeworker-1.3.2-py3-none-any.whl.
File metadata
- Download URL: timeworker-1.3.2-py3-none-any.whl
- Upload date:
- Size: 62.1 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 |
b296fa329885fa056e6ef0a7a2d9ed81fedefc1cbb9b44dbb16ce7f065110fea
|
|
| MD5 |
516b78bccfb600dcc8f8f9e34c3fbfee
|
|
| BLAKE2b-256 |
19b5dcc2d66bcf0670b9478d508fca9158b2c7b67f7b2e13eaccdc4d19946c91
|