Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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.

Files for week, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size week-0.0.7.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page