Skip to main content

A simple library for generating dates in common scenarios for data analysis.

Project description

Common Dates

A simple library for generating dates in common scenarios for data analysis.

Usage

from common_dates import common_dates

Functions


create_date_from_str: Create a Datetime object from a string with specific date_format.
get_today: Create a Date Object or String of Today.
get_yesterday: Create a Date Object or String of Yesterday.
get_current_month: Return current month.
get_last_month: Return last month date.
get_previous_nmonth: Return last n-month.
get_same_day_last_week: Return the same day of the week of last week.
get_same_day_last_month: Return the same day of last month.

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

common_dates-0.0.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

common_dates-0.0.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file common_dates-0.0.2.tar.gz.

File metadata

  • Download URL: common_dates-0.0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.3

File hashes

Hashes for common_dates-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c23995f325f13a9e35700cd8bdccd84efca7b95cc13a2b48bb6a92899c845639
MD5 a6f4e2bececde7a709e7fcb7090cb00b
BLAKE2b-256 b3ad7286808889c949bbec45d403f9518f5f161b4b4a8689007e68724ff58384

See more details on using hashes here.

File details

Details for the file common_dates-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: common_dates-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.3

File hashes

Hashes for common_dates-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7b97a950e9f52117105991f0b7f294b24be9d1cd26ed1d5e657217fdd040307a
MD5 e8453521f0b7a7716ea3d36eee68883b
BLAKE2b-256 439b36342dcb687856e2e0d5e0d050a228b8fddb1f5e51a87ce27b5693c8f271

See more details on using hashes here.

Supported by

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