Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.13 KB

ReadMe.md

File metadata and controls

40 lines (27 loc) · 1.13 KB

Manipuldate

Date/Time/DateTime Manipulation Done Right Still In Active Development - Not Production Ready

Badges

Build Status Scrutinizer Code Quality

Installation

pip install manipuldate

Trivial Usage

Here I will just show a very trivial usage, for more in-depth usage options check out our Documentation (Coming Soon TM)

from manipuldate import Manipuldate


today = Manipuldate.today()
# Let's go ahead and print out our current date in a human readable string
print(today.strftime("%m/%d/%Y"))


# Now let's get tomorrow's date
tomorrow = Manipuldate.tomorrow()
print(tomorrow.strftime("%m/%d/%Y"))

# Is tomorrow a weekend?
if tomorrow.is_weekend():
    print("Partayyyyyy")
else:
    print("Get to work!")


# Oh! Let's add a month to tomorrow.
next_month = tomorrow.add_month()
print(next_month.strftime("%m/%d/%Y"))