- Introduce
endOfDay
extension to DateTime
- Introduce
shift
extension to DateTime
- Introduce
isWeekend
extension to DateTime
- Introduce
isWorkday
extension to DateTime
- Fix
min
and max
assertion with clamp
extension
- Introduce
firstDayOfWeek
extension to DateTime
- Introduce
lastDayOfWeek
extension to DateTime
- Introduce
firstDayOfMonth
extension to DateTime
- Introduce
lastDayOfMonth
extension to DateTime
- Introduce
firstDayOfYear
extension to DateTime
- Introduce
lastDayOfYear
extension to DateTime
- Introduce
clamp
extension to DateTime
- Introduce
clamp
extension to Duration
- Introduce
package:clock
dependency for more predictable testing
- Implement utc support for
copyWith
operation
- Introduce
isAtSameYearAs
extension to DateTime
- Introduce
isAtSameMonthAs
extension to DateTime
- Introduce
isAtSameDayAs
extension to DateTime
- Introduce
isAtSameHourAs
extension to DateTime
- Introduce
isAtSameMinuteAs
extension to DateTime
- Introduce
isAtSameMillisecondAs
extension to DateTime
- Introduce
isAtSameMicrosecondAs
extension to DateTime
- Introduce
isLeapYear
extension to DateTime
- Introduce
daysInMonth
extension to DateTime
final DateTime specificDate = DateTime(2021, 01, 01);
final DateTime otherDate = DateTime(2021, 02, 01);
print(specificDate.isAtSameYearAs(otherDate)); // true
print(specificDate.isAtSameMonthAs(otherDate)); // false
print(specificDate.isAtSameDayAs(otherDate)); // false
- Introduce
isAtSameYearAs
extension to DateTime
- Introduce
isAtSameMonthAs
extension to DateTime
- Introduce
isAtSameDayAs
extension to DateTime
- Introduce
isAtSameHourAs
extension to DateTime
- Introduce
isAtSameMinuteAs
extension to DateTime
- Introduce
isAtSameMillisecondAs
extension to DateTime
- Introduce
isAtSameMicrosecondAs
extension to DateTime
- Introduce
isLeapYear
extension to DateTime
- Introduce
daysInMonth
extension to DateTime
- Migrated to null-safe dart
- Introduce
isToday
extension to Duration
- Introduce
isTomorrow
extension to DateTime
- Introduce
wasYesterday
extension to DateTime
- Introduce
delay
extension to Duration
- Introduce
copyWith
extension to DateTime
- Iterate through a
DateTime
range:
final DateTime start = DateTime(2019, 12, 2);
final DateTime end = start + 1.weeks;
final DateTime tuesday = start.to(end).firstWhere((date) => date.weekday == DateTime.tuesday);
- Fix breaking change from v1.1.0 by introducing @deprecated flag
- Breaking Change: renamed
later
to fromNow
to align with other ecosystems
- Introduced support for other variants of
num
i.e double
- Named extensions to allow discoverability
- Introduced quality control test cases
- Unify extensions for int, Duration & DateTime