Skip to main content

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

Project description

UTC Time v0.2.0-beta

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.2.0b0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

utctime-0.2.0b0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file utctime-0.2.0b0.tar.gz.

File metadata

  • Download URL: utctime-0.2.0b0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for utctime-0.2.0b0.tar.gz
Algorithm Hash digest
SHA256 626c5545771c894c75c45649d79a67ad30e1e06cded63f3671e6f4513dce50ae
MD5 f4ba1cf2a25536e684334359257d38ff
BLAKE2b-256 a20b42f85d12912fd8447bee7d8305f50773dbc1d1fb26fb3d776cac38e2ea05

See more details on using hashes here.

File details

Details for the file utctime-0.2.0b0-py3-none-any.whl.

File metadata

  • Download URL: utctime-0.2.0b0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for utctime-0.2.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 77071f8c4fa9958013954d6b76f3882dab40d3a0fb638f39ea4a12f4e5ab09be
MD5 a6d8b2b2f1526ed85d7fd167fca514b6
BLAKE2b-256 f6fe88d12405439f6a1be04212f8277721b113bef0368fa7d10f21a26f93eea0

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