Skip to main content

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

timeworker-1.1-py3-none-any.whl (61.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: timeworker-1.1-py3-none-any.whl
  • Upload date:
  • Size: 61.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1fdb0a46f16b80dada6b4b41ae847d8be87eaeca76e79da783e24e1f59f8b792
MD5 e9f58af38a9c31338b6e8cb8f56b990e
BLAKE2b-256 e1aa2edcdceda43b91cf0a81b4c16c504c675fa4e63526c72edd2da29b0acbd5

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