msampathkumar / ifcalendar

The International Fixed Calendar (also known as the Cotsworth plan, the Eastman plan, the 13 Month calendar or the Equal Month calendar) is a solar calendar proposal for calendar reform designed by Moses B. Cotsworth, who presented it in 1902. It divides the solar year into 13 months of 28 days each. It is therefore a perennial calendar, with every date fixed to the same weekday every year.
MIT License
9 stars 6 forks source link
calendar calendar-reform cotsworth-plan eastman-plan python3

IFC or Internaltional Fixed Calendar for Yearly Reports by Monthly

The International Fixed Calendar (also known as the Cotsworth plan, the Eastman plan, the 13 Month calendar or the Equal Month calendar) is a solar calendar proposal for calendar reform designed by Moses B. Cotsworth, who presented it in 1902. It divides the solar year into 13 months of 28 days each. It is therefore a perennial calendar, with every date fixed to the same weekday every year.

Advantage

In most time based statistical analysis, generating reports by month or week is a common practice. But the standard Georgian Calendar Months, have differences in each month and following concerns.

In IFC, the total day counts in a month is fixed. There are standard four weeks in a month and 13 months a year which makes for 365 days. In Leap year, 13 th months will be having 29 day.

How to Usage

To install ifcalender using PIP

pip install -U ifcalendar

How to use in your ML/Data Science Project

>>> import ifcalendar
>>> 
>>> t = ifcalendar.IFCDate(123, 2020) # passing (year_day, year)
>>> print(t)
Wed 11 JUN 2020
>>> t.day
11
>>> t.month
5
>>> print(t.day, t.week, t.week_day, t.month, t.month_name, t.year)
11 17 Wed 5 JUN 2020

Developer Setup

System Requirement:

  1. Python3
  2. git pull

For a developer setup, run following command from your Mac/Ubuntu system

make all

This will do following tasks for you

  1. Setup a virtual environment
  2. Install developer dependencies
  3. Run nose tests

Code Development, Helper Sites

Future Improvements

Use https://github.com/msampathkumar/ifcalendar/projects to know on our progress on bugs & lastest features we are working on.

LICENCE

MIT License