Metadata-Version: 2.1
Name: pyfortified-dateutil
Version: 0.1.0
Summary: Extension to Python `datetime` functionality.
Home-page: https://github.com/jeff00seattle/pyfortified-dateutil
Author: UNKNOWN
Author-email: UNKNOWN
License: MIT License
Download-URL: https://github.com/jeff00seattle/pyfortified-dateutil/archive/v0.1.0.tar.gz
Keywords: pyfortified dateutil
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: pprintpp
Requires-Dist: python-dateutil (>=2.7.3)
Requires-Dist: pytz (>=2018.4)
Requires-Dist: pytz-convert
Requires-Dist: safe-cast
Requires-Dist: tzlocal (>=1.5.1)
Requires-Dist: wheel (>=0.30.0)

.. -*- mode: rst -*-

pyfortified-dateutil
--------------------

Important Note
^^^^^^^^^^^^^^

Work In Progress
^^^^^^^^^^^^^^^^

Badges
------


Install
-------

.. code-block:: bash

    pip install pyfortified-dateutil


Functions
---------

.. code-block:: python

    import pyfortified_dateutil
    import datetime as dt

    month_first_date, month_last_date = pyfortified_dateutil.dates_month_first_last(dt.date(2016, 12, 20))
    print(month_first_date)
    print(month_last_date)

.. code-block:: bash

    datetime.date(2016, 12, 1)
    datetime.date(2016, 12, 31)


.. code-block:: python

    import pyfortified_dateutil
    import datetime as dt

    start_dt = dt.date(2015, 12, 20)
    end_dt = dt.date(2016, 1, 6)

    for dt in pyfortified_dateutil.date_range(start_dt, end_dt):
        pprint(dt.strftime("%Y-%m-%d"))


.. code-block:: bash

    '2015-12-20'
    '2015-12-21'
    '2015-12-22'
    '2015-12-23'
    '2015-12-24'
    '2015-12-25'
    '2015-12-26'
    '2015-12-27'
    '2015-12-28'
    '2015-12-29'
    '2015-12-30'
    '2015-12-31'
    '2016-01-01'
    '2016-01-02'
    '2016-01-03'
    '2016-01-04'
    '2016-01-05'
    '2016-01-06'


.. code-block:: python

    import pyfortified_dateutil
    import datetime as dt

    start_dt = dt.date(2016, 12, 20)
    end_dt = dt.date(2018, 1, 11))

    for dt in pyfortified_dateutil.dates_months_list(start_dt, end_dt):
        print(dt)


.. code-block:: bash

    '2016-12'
    '2017-01'
    '2017-02'
    '2017-03'
    '2017-04'
    '2017-05'
    '2017-06'
    '2017-07'
    '2017-08'
    '2017-09'
    '2017-10'
    '2017-11'
    '2017-12'

