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
Easy: create UTC datetimes without thinking about it.
Type-safe: don’t accidentally mix and match UTC with non-UTC or naive datetimes.
ISO 8601: convert to and from ISO 8601 datetimes with ease (and use Z as the timezone instead of +00:00).
Safe Format: don’t accidentally convert to anything else.
Flexible Parsing: parses various ISO 8601 formats - with/without microseconds and/or with Z or +HH:MM timezones.
No Dependencies. we don’t need to pull in pytz just for UTC.
Interoperate: with regular datetime objects where necessary.
Familiar: similar names and conventions to working with datetime.
Checkout the docs link below for more information.
- Install:
- Docs:
- License:
- Source:
- Issues:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66cbf6a1be5b1d91ddb7d146e636daec0d75d519aa78324e088990efa66e1fea |
|
MD5 | 56bef57ad756b336b622b69a239f20da |
|
BLAKE2b-256 | ce1c94ae3d16f089dc82de27fc8aba961c766bb013e99e763d4e412668720f45 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dc0c735f40eff821d72f0439a3b64448f191f921f0fbfbe79ff8e4debe7e797 |
|
MD5 | 9b523f7ac7a8e93184d81d0ca5f58f8a |
|
BLAKE2b-256 | 97c1548643f3de90ab06c9748d3dc0a75ba49c4c1b324df770a64cf658600485 |