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

Uploaded Source

Built Distribution

cn2date-0.1.1b2-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file cn2date-0.1.1b2.tar.gz.

File metadata

  • Download URL: cn2date-0.1.1b2.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for cn2date-0.1.1b2.tar.gz
Algorithm Hash digest
SHA256 a0b8da4ac023a29490b32bb45f5cbc5ad7aa19842e9253da31bfe9f0a5ee0472
MD5 28f1f27845757e69f7e7fae9e8116ece
BLAKE2b-256 b1543fd71cf5296dafa00cb201e40756e49866f8f06990ee7cb581c06e6b3233

See more details on using hashes here.

File details

Details for the file cn2date-0.1.1b2-py3-none-any.whl.

File metadata

  • Download URL: cn2date-0.1.1b2-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for cn2date-0.1.1b2-py3-none-any.whl
Algorithm Hash digest
SHA256 b414e73a3a7729260084a3564fa8c923037a6d97a8f1d509ee3c07804c76e08b
MD5 ab9c483eb69540748f29946bc7e07de9
BLAKE2b-256 379d57395a5a1c5cd8315a7815de11e47d4267890ec5ecba8d741a23f4964a95

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