Skip to main content

A simple library for generating dates in common scenarios for data analysis (Demo package).

Project description

Science in Data Dates

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

Usage

from scienceindata_dates import scienceindata_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

scienceindata_dates-0.0.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

scienceindata_dates-0.0.3-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file scienceindata_dates-0.0.3.tar.gz.

File metadata

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

File hashes

Hashes for scienceindata_dates-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f800adc65068849f54156feab7ac57cf0441e72f4478f9c30b129511e96ef91d
MD5 20930cd8d8514aba1ea3ac71d9ac84b1
BLAKE2b-256 a9620b7482bda24bc78e8fee792788a3465ffac4daf7e5e0b0a85cb25d1522de

See more details on using hashes here.

File details

Details for the file scienceindata_dates-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for scienceindata_dates-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5de6aaf681af9678c37a35fd73785c6913bb943d5c4af2288ff022dfc6674bc5
MD5 5a09f9648d4b0ab922ed52dd9f208981
BLAKE2b-256 7e78db59fb0deb60e170d5a7e488de172babd5d5767108b557e62de7641b265c

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