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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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