Skip to main content

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

Project description

cn2date

Pypi Version

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

安装

pip install cn2date

使用

from cn2date import parse

parse("2023年").output()
# 输出结果:2023-01-01 00:00:00 - 2023-12-31 23:59:59.999999

parse("二零二三年十二月二十一日").output()
# 输出结果:2023-12-21 00:00:00 - 2023-12-21 23:59:59.999999

parse("今年").output()
# 输出结果:2024-01-01 00:00:00 - 2024-12-31 23:59:59.999999

parse("本季度").output()
# 输出结果:2024-01-01 00:00:00 - 2024-03-31 23:59:59.999999

许可证

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

Uploaded Source

Built Distribution

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

cn2date-0.1.2-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cn2date-0.1.2.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for cn2date-0.1.2.tar.gz
Algorithm Hash digest
SHA256 109c599d4e37207e4f131877193634f4165dd534b93c016b98bf072cc4e97b65
MD5 8882ccb7fb99cac0fbd476a28f6c1af6
BLAKE2b-256 921a000c74ec9cc58a94397a046fa7bcec5a60c6b07b621f8a61c9301cb90717

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cn2date-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for cn2date-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 09abce826d1f3daa2b70164f49d5c3a57ec3815af8a8549e481d4623f4182106
MD5 359d5bb3d445c2aec0bc0c7151568dc1
BLAKE2b-256 73677b8b8e990a56726a12c52d1d659ec5aad1924a65ae738efbb2365c34bb8f

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