Releases: 4mritGiri/npdatetime
Release version 0.2.0
Release Notes - v0.1.2
New Features
Fiscal Year Support for Nepali Dates
-
Introduction of Fiscal Year Functions:
Added functionality to calculate the current fiscal year based on Nepali dates.-
npdatetime.datetime.current_fiscal_year()
Returns the current fiscal year in Bikram Sambat (B.S.). -
npdatetime.get_fiscal_year_by_date(date_obj)
Returns the fiscal year for a specific Nepali datetime object.
-
-
Fiscal Year Calculation:
The fiscal year starts in the month of Shrawan (month 4) in the Nepali calendar. If the month is before Shrawan, the fiscal year is considered to be from the previous year.Example:
>>> npdatetime.datetime.current_fiscal_year() (2081, 2082)
>>> get_fiscal_year_by_date(npdatetime.datetime(2080, 4, 1)) (2080, 2081)
-
Datetime and Fiscal Year Integration:
Integrated fiscal year functions withnpdatetime.datetime
andnpdatetime.date
to easily access the fiscal year from the Nepali date.
Bug Fixes
- Minor optimizations in the
npdatetime
package to improve performance and accuracy.
Documentation Updates
- Added documentation for the new fiscal year functions in
README.md
to guide users on how to work with Nepali fiscal years.
For more details, visit the official documentation.
Key Changes:
- Fiscal Year Functions: Added the ability to calculate fiscal years based on the Nepali calendar.
- Example: Added examples to show how to get the current fiscal year or fiscal year for a specific date.
Release version 0.1.2
Release Notes - v0.1.2
New Features
Fiscal Year Support for Nepali Dates
-
Introduction of Fiscal Year Functions:
Added functionality to calculate the current fiscal year based on Nepali dates.-
npdatetime.datetime.current_fiscal_year()
Returns the current fiscal year in Bikram Sambat (B.S.). -
npdatetime.get_fiscal_year_by_date(date_obj)
Returns the fiscal year for a specific Nepali datetime object.
-
-
Fiscal Year Calculation:
The fiscal year starts in the month of Shrawan (month 4) in the Nepali calendar. If the month is before Shrawan, the fiscal year is considered to be from the previous year.Example:
>>> npdatetime.datetime.current_fiscal_year() (2081, 2082)
>>> get_fiscal_year_by_date(npdatetime.datetime(2080, 4, 1)) (2080, 2081)
-
Datetime and Fiscal Year Integration:
Integrated fiscal year functions withnpdatetime.datetime
andnpdatetime.date
to easily access the fiscal year from the Nepali date.
Bug Fixes
- Minor optimizations in the
npdatetime
package to improve performance and accuracy.
Documentation Updates
- Added documentation for the new fiscal year functions in
README.md
to guide users on how to work with Nepali fiscal years.
For more details, visit the official documentation.
Key Changes:
- Fiscal Year Functions: Added the ability to calculate fiscal years based on the Nepali calendar.
- Example: Added examples to show how to get the current fiscal year or fiscal year for a specific date.