Metadata-Version: 2.1
Name: timeworker
Version: 1.3.1
Summary: A chinese time str normalization package
Home-page: https://github.com/yfzsj01/timeworker
Author: DanielZzzsj
Author-email: yfzsj01@gmail.com
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE


## 简介 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)
```
