Skip to main content

Custom Package for recurring date utility

Project description

recurringdateutil

A sample python package deployment utility for calculating monthly or annual recurring date based on the date format. Any date format passed as input and expect any date format in output.

Usage

import recurringdateutil

from datetime import datetime, timedelta

input_date_format = '%Y-%m-%d'

output_date_format = '%Y-%m-%d'

Calculate next monthly recurring date

next_monthly_recurring_date = get_next_monthly_recurring_date(input_date_format, output_date_format)

Calculate next annual recurring date

enrollmentdate = datetime.today().strftime(input_date_format)

next_annual_recurring_date = get_next_annual_recurring_date(enrollmentdate, input_date_format, output_date_format)

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

recurringdateutil-0.0.2.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

recurringdateutil-0.0.2-py3-none-any.whl (3.5 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