A week package enable you to use week easily
Project description
#### Xiang Wang @ 2017-05-24 13:40:52
# Documentation
## Installation ` pip install week `
## Usage ` >>> import datetime >>> from week import Week >>> Week.thisweek() == Week.create_from_date(datetime.date.today()) True >>> week = Week.thisweek() >>> week.startdate datetime.date(2017, 5, 22) >>> next_week = week.get_next_week() >>> next_week.enddate datetime.date(2017, 6, 4) >>> another_week = week + 1 >>> another_week == next_week True >>> print(Week.create_from_date(datetime.date(2017,1,1))) 2016year 52week >>> print(Week.create_from_date(datetime.date(2017,1,10))) 2017year 2week `
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file week-0.0.7.tar.gz
.
File metadata
- Download URL: week-0.0.7.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bce07786190d6f288ec67bcf6dc839bae874c7a03daf1d67f2406517a49a786 |
|
MD5 | 5ec0a243ebb7e2c2e79c4be2001f985e |
|
BLAKE2b-256 | 3af1566c292673417f3770787cefc389bab0b354d6ca243d76e1e04f8c8644ba |