2016-12-15 21:45:32 -05:00
2016-12-15 21:30:31 -05:00
2016-12-15 21:45:32 -05:00
2016-12-15 21:31:40 -05:00

Maya: Datetime for Humans™
==========================

Datetimes are very frustrating to work with in Python, especially when dealing
with different locales on different systems. This library exists to make the simple things easier, while admitting that time is an illusion (timezones doubly so), and should be interacted with via an API for humans (not machines).

The Usage
---------

Just playing with an API here::

    >>> now = maya.now()
    <MayaDT epoch=1481850660.9>

    >>> tomorrow = maya.when('tomorrow')
    <MayaDT epoch=1481919067.23>

    >>> tomorrow.iso8601()
    '2016-12-16T15:11:30.263350Z'

    >>> tomorrrow.rfc2822()
    'Fri, 16 Dec 2016 20:11:30 -0000'

    >>> tomorrow.datetime()
    datetime.datetime(2016, 12, 16, 15, 11, 30, 263350, tzinfo=<UTC>)

    >>> tomorrow.year
    2016

    >>> tomorrow.microseconds
    263350

Timezones fit in here somewhere...
Languages
Python 87.5%
Jupyter Notebook 12.5%