Skip to main content

#### 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 `

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

week-0.0.7.tar.gz (4.2 kB view details)

Uploaded Source

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

Hashes for week-0.0.7.tar.gz
Algorithm Hash digest
SHA256 1bce07786190d6f288ec67bcf6dc839bae874c7a03daf1d67f2406517a49a786
MD5 5ec0a243ebb7e2c2e79c4be2001f985e
BLAKE2b-256 3af1566c292673417f3770787cefc389bab0b354d6ca243d76e1e04f8c8644ba

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.7 This release

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page