Skip to main content

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.1.tar.gz (53.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

timeworker-1.3.1-py3-none-any.whl (61.9 kB view details)

Uploaded Python 3

File details

Details for the file timeworker-1.3.1.tar.gz.

File metadata

  • Download URL: timeworker-1.3.1.tar.gz
  • Upload date:
  • Size: 53.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.10

File hashes

Hashes for timeworker-1.3.1.tar.gz
Algorithm Hash digest
SHA256 2d9700cf1b7f58acbe36aaade7d2cc54556dc1b7c8554ccdd9fcb090675a2b23
MD5 1de057034cbb263999ee76704b5fa89e
BLAKE2b-256 dc11904ccccc6b46399869efd2f379282f6ebfc3d1c1ca49638eb9d49105bc7d

See more details on using hashes here.

File details

Details for the file timeworker-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: timeworker-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 61.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.10

File hashes

Hashes for timeworker-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 572b7c21de8dc7f67ccf13c0992b509c55c79eebfd94dbc8a69606b678fc688d
MD5 74f0a78c20d1eb8adb1c1c364dad45a5
BLAKE2b-256 e951c9903ae546b03c8ecea27f35af2f2e0848e7e5b649abe361ff2cb4d3a9e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page