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.1.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
File details
Details for the file timeworker-1.2.1.tar.gz.
File metadata
- Download URL: timeworker-1.2.1.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 |
72eca36c1caa2f5f864efa737d0284d4e233fd25e87d70e75a9b85ec71d55599
|
|
| MD5 |
ba1584dec55f62a556307d58dab087cc
|
|
| BLAKE2b-256 |
14db1c7362a7154aa5f5660a591c548001f11ab56b32b31f712af9ac7aed2d94
|
File details
Details for the file timeworker-1.2.1-py3-none-any.whl.
File metadata
- Download URL: timeworker-1.2.1-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 |
af76843903eb084ebb20f22de2367a28c99f5d6b20d1b414b553a14887480df8
|
|
| MD5 |
6e83834d5cdff57a2aee80392ba5c7e2
|
|
| BLAKE2b-256 |
f3077ed929e29611709eff6cb3f4a0a06b7e8bca2a4b0b6f45edc1a2ac1d935f
|