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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cn2date-0.1.1.tar.gz
  • Upload date:
  • Size: 21.5 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.1.tar.gz
Algorithm Hash digest
SHA256 c2d0eeba9204797639c1c019d8b58733d54f4626aee288225435192a00d6d1a8
MD5 e17fd996887a7fbbbf9fb1ee95e9838e
BLAKE2b-256 4a9f8b9a8b643e7eaec13bf58867f32084cddf5956d5c77ac07673696e7d21e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cn2date-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2203eaa88cf7714bf9dcb04a3a1098ed51e37dbec6fc61d8394cdda9c3a7dd2
MD5 7c3d235a4ce563a9cde2c8e04eb957fc
BLAKE2b-256 097f4dbee8b93c75ee24f556692cdd60ffd9385279c2d4709196e4c51ffc96ce

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