https://github.com/dmayo3/utctime
Python lib for simplifying UTC datetime & ISO 8601
https://github.com/dmayo3/utctime
datetime iso8601 python tiny type-safe type-safety utc utc-datetime utility
Last synced: 5 days ago
JSON representation
Python lib for simplifying UTC datetime & ISO 8601
- Host: GitHub
- URL: https://github.com/dmayo3/utctime
- Owner: dmayo3
- License: mit
- Created: 2023-05-15T18:01:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-05T13:24:30.000Z (about 1 year ago)
- Last Synced: 2025-11-28T10:14:39.827Z (about 2 months ago)
- Topics: datetime, iso8601, python, tiny, type-safe, type-safety, utc, utc-datetime, utility
- Language: Python
- Homepage: https://pypi.org/project/utctime
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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 `_