|
| 1 | +DDate |
| 2 | +===== |
| 3 | + |
| 4 | +|Build Status| |Coverage Status| |Stories in Backlog| |Stories In |
| 5 | +Progress| |Version| |Wheel Status| |Downloads this month| |
| 6 | + |
| 7 | +Discordian Date Python Object Class. |
| 8 | + |
| 9 | +`GitHub page <http://a-tal.github.io/ddate/>`__ |
| 10 | + |
| 11 | +Python Usage Examples |
| 12 | +===================== |
| 13 | + |
| 14 | +.. code:: python |
| 15 | +
|
| 16 | + >>> from ddate import DDate |
| 17 | + >>> |
| 18 | + >>> DDate() |
| 19 | + <src.ddate.DDate object at 0x7f3a6b88eb50> |
| 20 | + <DDate date: 2014-02-01, day_of_season: 32, day_of_week: 1, holiday: None, season: 0, year: 3180> |
| 21 | + >>> |
| 22 | + >>> print(DDate()) |
| 23 | + Today is Boomtime, the 32nd day of Chaos in the YOLD 3180 |
| 24 | + >>> |
| 25 | + >>> import datetime |
| 26 | + >>> print(DDate(datetime.date(year=2014, month=4, day=20))) |
| 27 | + Setting Orange, the 37th day of Discord in the YOLD 3180 |
| 28 | +
|
| 29 | +Command Line Examples |
| 30 | +===================== |
| 31 | + |
| 32 | +.. code:: bash |
| 33 | +
|
| 34 | + $ ddate |
| 35 | + Today is Pungenday, the 40th day of Discord in the YOLD 3181 |
| 36 | +
|
| 37 | + $ ddate --help |
| 38 | + usage: ddate [day] [month] [year] |
| 39 | +
|
| 40 | + $ dcal |
| 41 | + Discord 3181 |
| 42 | + Sw Bo Pu Pr Se |
| 43 | + 71 72 73 1 2 |
| 44 | + 3 4 5 6 7 |
| 45 | + 8 9 10 11 12 |
| 46 | + 13 14 15 16 17 |
| 47 | + 18 19 20 21 22 |
| 48 | + 23 24 25 26 27 |
| 49 | + 28 29 30 31 32 |
| 50 | + 33 34 35 36 37 |
| 51 | + 38 39 40 41 42 |
| 52 | + 43 44 45 46 47 |
| 53 | + 48 49 50 51 52 |
| 54 | + 53 54 55 56 57 |
| 55 | + 58 59 60 61 62 |
| 56 | + 63 64 65 66 67 |
| 57 | + 68 69 70 71 72 |
| 58 | + 73 1 2 3 4 |
| 59 | +
|
| 60 | + $ dcal --help |
| 61 | + Similar to the `cal` command, but for the Discordian calendar. |
| 62 | +
|
| 63 | + Usage: |
| 64 | + dcal [season] [year] |
| 65 | +
|
| 66 | + Season can be an integer between 1 and 5, steps with + or -, 'next', or any of |
| 67 | + the Discordian season names. The year is in Discordian (+= 1166 to Gregorian). |
| 68 | +
|
| 69 | + Examples: |
| 70 | + dcal +2 # prints two seasons into the future |
| 71 | + dcal aft # prints the last season (The Aftermath) of this year |
| 72 | + dcal discord -2 # prints the Discord season from two years ago |
| 73 | + dcal +6 +1 # prints the calendar 6 seasons and one year in the future |
| 74 | +
|
| 75 | + Discordian season names: |
| 76 | + Chaos |
| 77 | + Discord |
| 78 | + Confusion |
| 79 | + Bureaucracy |
| 80 | + The Aftermath |
| 81 | +
|
| 82 | +Install |
| 83 | +======= |
| 84 | + |
| 85 | +Simple way: |
| 86 | + |
| 87 | +.. code:: bash |
| 88 | +
|
| 89 | + $ pip install -U ddate |
| 90 | +
|
| 91 | +Or from source: |
| 92 | + |
| 93 | +.. code:: bash |
| 94 | +
|
| 95 | + $ git clone https://github.com/a-tal/ddate |
| 96 | + $ cd ddate |
| 97 | + $ python setup.py install |
| 98 | +
|
| 99 | +Live Demo |
| 100 | +========= |
| 101 | + |
| 102 | +.. figure:: https://github.com/a-tal/ddate/raw/gh-pages/images/ddemo.gif |
| 103 | + :alt: live demo gif |
| 104 | + |
| 105 | + live demo gif |
| 106 | + |
| 107 | +.. |Build Status| image:: https://travis-ci.org/a-tal/ddate.png?branch=master |
| 108 | + :target: https://travis-ci.org/a-tal/ddate |
| 109 | +.. |Coverage Status| image:: https://coveralls.io/repos/a-tal/ddate/badge.png?branch=master |
| 110 | + :target: https://coveralls.io/r/a-tal/ddate?branch=master |
| 111 | +.. |Stories in Backlog| image:: https://badge.waffle.io/a-tal/ddate.png?label=ready&title=Backlog |
| 112 | + :target: https://waffle.io/a-tal/ddate |
| 113 | +.. |Stories In Progress| image:: https://badge.waffle.io/a-tal/ddate.png?label=ready&title=In+Progress |
| 114 | + :target: https://waffle.io/a-tal/ddate |
| 115 | +.. |Version| image:: https://img.shields.io/pypi/v/ddate.svg |
| 116 | + :target: https://pypi.python.org/pypi/ddate/ |
| 117 | +.. |Wheel Status| image:: https://img.shields.io/badge/status-wheel-green.svg |
| 118 | + :target: https://pypi.python.org/pypi/ddate/ |
| 119 | +.. |Downloads this month| image:: https://img.shields.io/pypi/dm/ddate.svg |
| 120 | + :target: https://pypi.python.org/pypi/ddate/ |
0 commit comments