bangla_utilities
A utility library for Bangla date-time and number conversion.
What this package is like to depend on
Last release 2 months ago
12 Jun 2026
Release timing varies
gaps range from 4 months to 4.0 years
Nearly every release is documented
notes for 9 of 9 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
9 releases · first in 2020
3 releases in the last 12 months
see the full history below
Release timeline
9 releases · Jun 2020 to Jun 2026
2021
2022
2023
2024
2025
2026
Releases
latest 9-
2.0.212 Jun 2026 -
2.0.112 Jun 2026Release notes
Open source →Bug fixes:
- Fixed
BanglaDate.monthIntandBanglaDate.monthto return the correct 1-based Bangla month number (বৈশাখ=1 … পৌষ=9 … চৈত্র=12) instead of a 0-based internal array index. - Added
BanglaDateFormatter— format aBanglaDatewith pattern tokens (DD,MM,YYYY,YY,D,M,d,S). - Fixed token replacement order in
BanglaDateFormatter(longest tokens first) to prevent partial collision (e.g.Dconsuming part ofDD). - Fixed
BanglaDateFormatterzero-padding to use rune-safe counting so single-digit Bangla numerals are padded with০correctly. - Exported
BanglaDateFormatterfrom the mainbangla_utilitieslibrary.
- Fixed
-
2.0.012 Jun 2026Release notes
Open source →Breaking changes:
- Removed deprecated
BanglaUtilityclass — useBanglaDateandBanglaNumberdirectly. - Module-level constants
banglaWeekdays,totalDaysInBanglaMonths, andgregEquivalentLeapYearIndexInBanglaMonthsare now private (were accidentally public). - Minimum Dart SDK bumped to
^3.4.0.
New features:
BanglaDate.today()— convenience constructor for today's date.BanglaDate.fromDateTime(DateTime)— construct directly from aDateTime.BanglaDate.dayInt,monthInt,yearInt— raw integer accessors alongside the existing Bangla numeral strings.BanglaDate.dateis now a computed getter (no stored state).BanglaNumber.fromString(String)— converts digits in an arbitrary string (decimals, timestamps, mixed text).BanglaNumber.englishValue— stores the originalintwhen constructed viafromEnglish.
Performance:
BanglaNumberdigit conversion switched from O(n)indexOfto O(1) code-unit arithmetic.DateTime.now()is resolved once per factory call instead of once per helper.
Quality:
- Switched dev lint rule set from
flutter_lintstolints(pure-Dart package). - Added GitHub Actions CI workflow (
analyze,format,test). - Comprehensive test suite with grouped tests and edge cases.
- Removed deprecated
-
1.5.024 Feb 2025 -
1.0.006 Mar 2021 -
0.2.115 Sep 2020 -
0.2.015 Sep 2020 -
0.1.101 Jun 2020 -
0.0.101 Jun 2020Release notes
Open source →initial release:
- Added English to Bangla number converter
- Added leap year checker
- Added Bangla weekday, day, month, monthName, year and season