Skip to main content

A robust utility for parsing dates in various formats.

Project description

datepy

Visit Github.

datepy is a versatile Python library for parsing dates from various string formats into standardized RFC 3339 timestamps. It supports a wide range of date formats, including ISO 8601, RFC 822, long date formats, and more, with the ability to extend support through custom formats.

Features

  • Broad Format Support: Handles numerous standard and custom date formats out of the box.
  • Customizable: Easily extendable to parse non-standard date formats.
  • Easy to Use: Simple and intuitive API.

Installation

To install datepy, simply use pip:

pip install datepy

Usage

datepy is easy to use. Simply import the library and call the parse function with the date string and the format of the date string. The function will return a standardized RFC 3339 timestamp.

from datepy import datepy

date_string = "2021-01-01 12:00:00"
rfc3339_date = datepy.convert_to_rfc3339(date_string)
print(rfc3339_date)

Additional Formats

Please suggest a request and I can add the code/feature or format!

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

datepy-0.2.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

datepy-0.2.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file datepy-0.2.0.tar.gz.

File metadata

  • Download URL: datepy-0.2.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for datepy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e99edeb7fdd1aa0cb1a2c52f22082724e68b4274c112d384c0988522ac59d026
MD5 05c0b2ee5eff173002da969a529db3c4
BLAKE2b-256 92ea018b21b9a921bdb3035d6398d000049b6e35a43324339253d146612c8d37

See more details on using hashes here.

File details

Details for the file datepy-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: datepy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for datepy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9c88d0593a987fa1d9e5120772fe333f0aa0b6e3693591c8d1beae6529171ea
MD5 3ac6d41f6941930ce5908b552836bfe3
BLAKE2b-256 ded1b68773e435642d6587684e61d2f67550162438d444dd089401647f9c3b39

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