Metadata-Version: 2.1
Name: pyunit-time
Version: 2019.12.9
Summary: 大型正则解析时间
Home-page: https://github.com/PyUnit/pyunit-calendar
Author: Jtyoui
Author-email: jtyoui@qq.com
License: MIT Licence
Platform: any
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: arrow (==0.13.1)
Requires-Dist: python-dateutil (==2.8.1)
Requires-Dist: pyunit-calendar (==2019.5.9)
Requires-Dist: regex (==2019.11.1)
Requires-Dist: six (==1.14.0)

# **pyUnit_time** [![](https://gitee.com/tyoui/logo/raw/master/logo/photolog.png)][1]

## 处理时间模块集合
[![](https://img.shields.io/badge/Python-3.7-green.svg)]()
[![](https://img.shields.io/badge/Email-jtyoui@qq.com-red.svg)]()


### 安装
    pip install pyunit-time


### 使用
```python
from pyunit_time import CharactersTime

if __name__ == '__main__':
    nt = CharactersTime()
    np = nt.parse('今天晚上8点到明天上午10点之间')
    print(np)  # ['2019-12-09 20:00:00', '2019-12-10 10:00:00']
    np = nt.parse('今年儿童节晚上九点一刻')
    print(np)  # ['2019-06-01 21:15:00']
    np = nt.parse('今天中午十二点')
    print(np)  # ['2019-12-09 12:00:00']
    np = nt.parse('明年春节')
    print(np)  # ['2020-01-25 00:00:00']
    np = nt.parse('下下下个星期五早上7点半')
    print(np)  # ['2020-01-3 07:30:00']
```

***
[1]: https://blog.jtyoui.com

