Skip to main content

A simple and type-safe way of working with UTC datetimes and ISO 8601 strings.

Project description

UTC Time v0.1.2-alpha

This is a tiny utility to simplify the everyday pain of working with UTC datetimes and ISO 8601 strings in Python.

Motivation

  1. Easy: create UTC datetimes without thinking about it.

  2. Type-safe: don’t accidentally mix and match UTC with non-UTC or naive datetimes.

  3. ISO 8601: convert to and from ISO 8601 datetimes with ease (and use Z as the timezone instead of +00:00).

  4. Safe Format: don’t accidentally convert to anything else.

  5. Flexible Parsing: parses various ISO 8601 formats - with/without microseconds and/or with Z or +HH:MM timezones.

  6. No Dependencies. we don’t need to pull in pytz just for UTC.

  7. Interoperate: with regular datetime objects where necessary.

  8. Familiar: similar names and conventions to working with datetime.

Checkout the docs link below for more information.

Install:

PyPi

Docs:

Read The Docs

License:

MIT

Source:

GitHub

Issues:

GitHub Issues

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

utctime-0.1.2a0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

utctime-0.1.2a0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file utctime-0.1.2a0.tar.gz.

File metadata

  • Download URL: utctime-0.1.2a0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for utctime-0.1.2a0.tar.gz
Algorithm Hash digest
SHA256 66cbf6a1be5b1d91ddb7d146e636daec0d75d519aa78324e088990efa66e1fea
MD5 56bef57ad756b336b622b69a239f20da
BLAKE2b-256 ce1c94ae3d16f089dc82de27fc8aba961c766bb013e99e763d4e412668720f45

See more details on using hashes here.

File details

Details for the file utctime-0.1.2a0-py3-none-any.whl.

File metadata

  • Download URL: utctime-0.1.2a0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for utctime-0.1.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 9dc0c735f40eff821d72f0439a3b64448f191f921f0fbfbe79ff8e4debe7e797
MD5 9b523f7ac7a8e93184d81d0ca5f58f8a
BLAKE2b-256 97c1548643f3de90ab06c9748d3dc0a75ba49c4c1b324df770a64cf658600485

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