whe

whenpy

Friendly Python Dates

Showing:

Popularity

Downloads/wk

0

GitHub Stars

186

Maintenance

Last Commit

4yrs ago

Contributors

6

Package

Dependencies

0

License

Copyright (c) 2012, Andy Dirnberger All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the project nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Categories

Readme

=================================

When.py: Friendly Dates and Times

.. image:: http://unmaintained.tech/badge.svg :target: http://unmaintained.tech/ :alt: No Maintenance Intended

Production: |travismaster| |coverallsmaster|

Development: |travisdevelop| |coverallsdevelop|

.. |travismaster| image:: https://secure.travis-ci.org/dirn/When.py.png?branch=master :target: http://travis-ci.org/dirn/When.py .. |travisdevelop| image:: https://secure.travis-ci.org/dirn/When.py.png?branch=develop :target: http://travis-ci.org/dirn/When.py

.. |coverallsmaster| image:: https://coveralls.io/repos/dirn/When.py/badge.svg?branch=master :target: https://coveralls.io/r/dirn/When.py?branch=master .. |coverallsdevelop| image:: https://coveralls.io/repos/dirn/When.py/badge.svg?branch=develop :target: https://coveralls.io/r/dirn/When.py?branch=develop

User-friendly functions to help perform common date and time actions.

Usage

To get the system time zone's name::

when.timezone()

To get the current date::

when.today()

To get tomorrow's date::

when.tomorrow()

To get yesterday's date::

when.yesterday()

To get a datetime one year from now::

when.future(years=1)

To convert to a different time zone::

when.shift(value, from_tz='America/New_York', to_tz='UTC')

To get the current time::

when.now()

Full documentation can be found on Read the Docs_.

.. _Read the Docs: http://readthedocs.org/docs/whenpy/en/latest/

Installation

Installing When.py is easy::

pip install whenpy

or download the source and run::

python setup.py install

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100