Skip to main content

中文日期 、口语 转换为 日期字符串

Project description

cn2date

中文日期 、口语 转换为 日期字符串

安装

pip install cn2date

使用

from cn2date import parse

result = parse("二零二一年九月十七日")
# 输出结果:('2021-09-17 00:00:00', '2021-09-18 00:00:00')

result = parse("今天")
# 输出结果:('2022-02-23 00:00:00', '2022-02-24 00:00:00')

result = parse("本季度")
# 输出结果:('2022-01-01 11:43:31', '2022-04-01 11:43:31')

许可证

MIT License

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

cn2date-0.0.4.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

cn2date-0.0.4-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file cn2date-0.0.4.tar.gz.

File metadata

  • Download URL: cn2date-0.0.4.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.61.2 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for cn2date-0.0.4.tar.gz
Algorithm Hash digest
SHA256 92c102ab5ce1df0f33efc7e8f5ca68a5b799cfc02f9b3dcb7ab17464321f7727
MD5 3d51a17e633072ca3ddb08851f4053a5
BLAKE2b-256 00198727320d6d8b7472a9c4aad5675e3dfd7f15ff950305f2fa099ed3f70815

See more details on using hashes here.

File details

Details for the file cn2date-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cn2date-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.61.2 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for cn2date-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2ea28801eead7ea56b4234f90d938b168c34d58b0de7cc637807a4f28add7bc6
MD5 1a702ad0c55541053bb1a7e049f055b3
BLAKE2b-256 6f89a21b587242e0f01ef87ca610c1f0f6e2f363a607d5f614d1a9cde1d09df7

See more details on using hashes here.

Supported by

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