Date/Time/DateTime Manipulation Done Right
Project description
# Manipuldate
Date/Time/DateTime Manipulation Done Right
<sub><sub>Still In Active Development - Not Production Ready</sub></sub>
### Badges
[![Build Status](https://travis-ci.org/JenkinsDev/manipuldate.svg?branch=master)](https://travis-ci.org/JenkinsDev/manipuldate)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/JenkinsDev/manipuldate/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/JenkinsDev/manipuldate/?branch=master)
## 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)
```python
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"))
```
Date/Time/DateTime Manipulation Done Right
<sub><sub>Still In Active Development - Not Production Ready</sub></sub>
### Badges
[![Build Status](https://travis-ci.org/JenkinsDev/manipuldate.svg?branch=master)](https://travis-ci.org/JenkinsDev/manipuldate)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/JenkinsDev/manipuldate/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/JenkinsDev/manipuldate/?branch=master)
## 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)
```python
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"))
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
manipuldate-0.2.1.zip
(8.5 kB
view details)
File details
Details for the file manipuldate-0.2.1.zip
.
File metadata
- Download URL: manipuldate-0.2.1.zip
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54675dcfa8449962383f1b93aa060a9f7a0f7182a0a4934dc138e6c3c9b0c3e5 |
|
MD5 | 1ccbe2366c0430bacbae5d65dd2f9271 |
|
BLAKE2b-256 | e80127cca933057930b77dd37d7f7c51e6f66afc05585df815ddc1f2533d18cc |