Skip to content

Easy datetime manipulation for Python3.x (Date/Time Arithmetic, etc.)

License

Notifications You must be signed in to change notification settings

JenkinsDev/manipuldate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"))

About

Easy datetime manipulation for Python3.x (Date/Time Arithmetic, etc.)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages