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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for common_dates-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b97a950e9f52117105991f0b7f294b24be9d1cd26ed1d5e657217fdd040307a |
|
MD5 | e8453521f0b7a7716ea3d36eee68883b |
|
BLAKE2b-256 | 439b36342dcb687856e2e0d5e0d050a228b8fddb1f5e51a87ce27b5693c8f271 |