This commit is contained in:
2016-12-15 19:16:52 -05:00
commit 699e7bb3b0
2 changed files with 23 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
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
Note that outputs are fuzzy and made up, just playing with an API here::
>>> now = maya.now()
<MayaDT epoch=1481847021>
>>> tomorrow = now.forwards('one day')
<MayaDT epoch=1481977021>
>>> tomorrow.iso8601
2016-12-16T00:12:54+00:00
>>> tomorrrow.iso8601
Fri, 17 Dec 2016 00:12:54 +0000
>>> tomorrow = maya.import('tomorrow').datetime
datetime.datetime(2016, 12, 16, 0, 14, 33, 950436)
View File