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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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