date_formatter_codespark 1.3.1
date_formatter_codespark: ^1.3.1 copied to clipboard
A zero-dependency Dart and Flutter date formatter with DateTime extensions for date formatting, datetime formatting, relative time, time ago, human-readable dates, timestamps, and custom date formats.
1.3.1 — 2026-06-05 #
SEO & Discoverability #
- Rewrote
pubspec.yamldescription with keyword-rich copy targeting pub.dev search: "date formatting, datetime formatting, relative time, time ago, human-readable dates, timestamps, custom date formats". - Replaced generic
topicswith targeted, search-optimised pub.dev topics:date-formatting,datetime,date-formatter,time-ago,datetime-extension. - Added
npm-package-prompt.md— a ready-to-use Copilot prompt for developers who want to port the package to npm (date-spark), improving cross-ecosystem discoverability.
Code Quality #
- Fixed deprecated
withOpacity→withValues(alpha:)inexample/main.dart. - Removed unnecessary
library date_formatter_codespark;name directive from barrel file. - Renamed private local function
_label→labelindate_extensions.dartto comply withno_leading_underscores_for_local_identifierslint rule. dart analyzereports 0 issues.
1.3.0 — 2026-06-02 #
Documentation & Presentation #
- Added pub points, pub likes, platform (Flutter), and custom "DateTime Extensions" badges to README.
- Added author credit line to README.
- Added a 6-image screenshots gallery section to README (captured from iPhone 15 Plus simulator).
- Registered screenshots in
pubspec.yamlso pub.dev displays them on the package page. - Renamed
aassets/folder toassets/and gave screenshots clean filenames. - Bumped installation reference in README to
^1.3.0.
1.2.0 — 2026-05-31 #
- Added
isMorning,isAfternoon,isEvening,isNightfor time-of-day checks. - Added
isFirstBusinessDayOfMonthfor business calendar logic. - Added
nthWeekdayOfMonth(int weekday, int n)for finding the nth weekday in a month. - Added
isLastOccurrenceOfWeekdayInMonthfor last weekday occurrence in month. - Added
daysSince(DateTime other)for day difference. - Added
isPublicHoliday(List<DateTime> holidays)for holiday checks. - Added
toFiscalYear({int fiscalYearStartMonth = 4})for fiscal year calculation. - Added
nextBusinessDayandpreviousBusinessDayfor business day navigation. - Added
businessDaysUntil(DateTime other)to count business days between two dates.
1.1.0 #
- Added
isLastBusinessDayOfMonthfor business day calculations.
1.0.0 #
- Initial stable release.
- Added
toTimeAgo()for semantic relative human-readable time strings. - Added boundary evaluation flags (
isToday,isYesterday,isTomorrow,isThisWeek). - Added high-frequency design layout presets (
toDayAndMonth,toTime12Hour,toFullHumanDate). - Added precise countdown trackers (
daysRemaining,hoursRemaining).- Business day math:
isBusinessDay,addBusinessDays,subtractBusinessDays,isLastBusinessDayOfMonth
- Business day math:
- Week/year/quarter logic:
weekOfYear,quarter,isQuarterStart,isQuarterEnd,startOfWeek,endOfWeek,startOfMonth,endOfMonth,startOfYear,endOfYear,isSameWeek,isSameMonth,isSameYear,daysInMonth,isFirstDayOfMonth,isLastDayOfMonth - Julian day support:
toJulianDay,fromJulianDay - Advanced formatting:
toIsoDateString,toIsoTimeString,toShortTimeString,toShortDateString,toRfc2822String - Utility flags:
isLeapYear,isWeekend,isFuture,isPast,isUtc,toLocalOrUtc,withTimeZoneOffset,isWithin - Date math:
copyWith,nextDay,previousDay,daysUntil,monthsBetween,yearsBetween,atTime - No breaking changes; all previous APIs remain.
- All methods are documented with concise, AI-friendly doc comments and examples.