Metadata-Version: 2.1
Name: sickdt
Version: 0.1.0rc2
Summary: Opinionated wrapper over the built-in ``datetime`` module.
Home-page: https://github.com/alexjuda/sickdt
Author: Alexander Juda
Project-URL: Bug Tracker, https://github.com/alexjuda/sickdt/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/x-rst
Provides-Extra: dev
License-File: LICENSE.txt

======
sickdt
======

Opinionated wrapper over the built-in ``datetime`` module.
Exposes a subset of *just the right* functionality to avoid common gotchas with dates in Python.


    Yo, these datetimes are sick!
    
~anonymous


Features
========

* Robust, automated timezone handling.
* `ISO 8601 <https://en.wikipedia.org/wiki/ISO_8601>`__-compliant timestamp strings.
* Unix epoch seconds.
* Only depends on Python standard library.
* Uses built-in data types: ``datetime``, ``float``, ``str``.


Driving Principles
==================

* A ``datetime`` object represents an *instant*, a particular point in time. A snapshot of the universe. It doesn't matter what was the timezone, DST mode, the user's calendar, nor their locale.
* A ``datetime`` on its own isn't human-readable. If you need to show it to the user, you need to provide the timezone or locale.
* All ``datetime`` objects **must** be *timezone-aware*.
* When in need of string timestamps, use `ISO 8601 <https://en.wikipedia.org/wiki/ISO_8601>`__ with milliseconds and Zulu time.
* When in need of numerical timestamps, use a float for UNIX epoch seconds in UTC.
* This **must** be easy to integrate with existing codebase. No custom data types over stdlib.
* Inspired by the design choices of `NSDate <https://developer.apple.com/documentation/foundation/nsdate>`__.


Similar Projects
================

* `Arrow <https://arrow.readthedocs.io/en/latest/>`_. Requires a total buy-in, you have to switch to using their datatypes.
