It Calculate financial year related dates
Project description
FinancialYear
- It calculate financial year related issue
update doc
Major Update in function name and stable version
To update
pip install --upgrade financialyear
Goal
- Input may be in 2022 or 2022-23 in
- It Returns the start date and end date of a month for a given financial year and month.
-
get financial_month_start_month
-
year = "2023-24" and month as int (e.g., 4 for April)
-
month_start_date returns a date like "01-04-2023"
-
month_end_date returns a date like "30-04-2023"
-
month_list returns all months of the financial year from "04-2023" to "03-2024"
-
get test as 2022-23 from a date
Example usage:
financial_year = Finyear("2023-24")
print(financial_year.month_start_date(1)) # Output: 01-04-2023
print(financial_year.month_end_date(1)) # Output: 30-04-
print(financial_year.previous_month_dates(month=1)) # return two date like :: (datetime.date(2023, 12, 1), datetime.date(2023, 12, 31))
print(financial_year.month_list()) # Output: ['04-2023', '05-2023', '06-2023', ..., '03-2024']
print(date_to_finyear(date='2022-10-2')) # output : 2022-23
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file financialyear-1.3.tar.gz.
File metadata
- Download URL: financialyear-1.3.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04686c4775d5942c297b44de9160efe5d96f999e3f440e38ef901b60fe95f014
|
|
| MD5 |
a495f780c98f12b290ae11fd75232715
|
|
| BLAKE2b-256 |
33126ddfd7744e85842b5b2ab98babc48626f47d0619eb0c8f2f6c1fd1090408
|
File details
Details for the file financialyear-1.3-py3-none-any.whl.
File metadata
- Download URL: financialyear-1.3-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36bbbbad90ab6bac64dddcefac24c10ac446b8513cc67b19fad35151d2f108b2
|
|
| MD5 |
b5ad7fe89691349972864724d1f72990
|
|
| BLAKE2b-256 |
434d7b08989ddec690219f262af501ac5bac324360639f847ea99a4199a8f59b
|