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 Distribution

timeworker-1.2.3.tar.gz (53.3 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.2.3-py3-none-any.whl (62.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for timeworker-1.2.3.tar.gz
Algorithm Hash digest
SHA256 614a336add1f6f14faef0b0f3f77dd75173446c5ae9da4756824fd9629706f3a
MD5 8d4f151317020fbb408d4c4af3ebc66e
BLAKE2b-256 f4143ab2f8bc189cccc0ebc208227219bf899cccf786668061f2569fd87e801e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: timeworker-1.2.3-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

Hashes for timeworker-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e2a4d868c06d8c43c6de4ad4de3c1389719eb99d752d31bee0b4788932a617f8
MD5 288c36bb2202878d586531eed9c1d7c2
BLAKE2b-256 04ca81ba51f1b41d5ca8a4918814e4913bb6989ef4826566da2fa6dc2f078b74

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