<commit_before>Pendulum
########

.. image:: https://travis-ci.org/sdispater/pendulum.png
   :alt: Orator Build status
   :target: https://travis-ci.org/sdispater/pendulum

Python datetimes made easy.

.. code-block:: python

    import pendulum

    now_in_paris = pendulum.now('Europe/Paris')
    '2016-07-04T00:49:58.502116+02:00'
    now_in_paris.to('UTC')
    '2016-07-03T22:49:58.502116+00:00'

    tomorrow = pendulum.now().add(days=1)
    last_week = pendulum.now().sub(weeks=1)

    if pendulum.now().is_weekend():
        print('Party!')

    past = pendulum.now().sub(minutes=2)
    past.diff_for_humans()
    '2 minutes ago'

    delta = past - last_week
    delta.hours
    23
    delta.for_humans(locale='fr')
    '6 jours 23 heures 58 minutes'

Resources
=========

* `Official Website <http://pendulum.eustace.io>`_
* `Documentation <http://pendulum.eustace.io/docs/>`_
* `Issue Tracker <https://github.com/sdispater/pendulum/issues>`_<commit_msg>Updates README<commit_after>Pendulum
########

.. image:: https://travis-ci.org/sdispater/pendulum.png
   :alt: Orator Build status
   :target: https://travis-ci.org/sdispater/pendulum

Python datetimes made easy.

.. code-block:: python

    import pendulum

    now_in_paris = pendulum.now('Europe/Paris')
    '2016-07-04T00:49:58.502116+02:00'
    now_in_paris.to('UTC')
    '2016-07-03T22:49:58.502116+00:00'

    tomorrow = pendulum.now().add_day()
    last_week = pendulum.now().sub_week()

    if pendulum.now().is_weekend():
        print('Party!')

    past = pendulum.now().sub_minutes(2)
    past.diff_for_humans()
    '2 minutes ago'

    delta = past - last_week
    delta.hours
    23
    delta.for_humans(locale='fr')
    '6 jours 23 heures 58 minutes'

Resources
=========

* `Official Website <http://pendulum.eustace.io>`_
* `Documentation <http://pendulum.eustace.io/docs/>`_
* `Issue Tracker <https://github.com/sdispater/pendulum/issues>`_
{'fraction_non_alphanumeric': 0.17004680187207488, 'fraction_numerical': 0.06032241289651586, 'mean_word_length': 3.4953271028037385, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '440127', 'n_tokens_mistral': 821, 'n_tokens_neox': 715, 'n_words': 112}