File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1+ ## 1.4.1
2+
3+ - Introduce ` isAtSameYearAs ` extension to ` DateTime `
4+ - Introduce ` isAtSameMonthAs ` extension to ` DateTime `
5+ - Introduce ` isAtSameDayAs ` extension to ` DateTime `
6+ - Introduce ` isAtSameHourAs ` extension to ` DateTime `
7+ - Introduce ` isAtSameMinuteAs ` extension to ` DateTime `
8+ - Introduce ` isAtSameMillisecondAs ` extension to ` DateTime `
9+ - Introduce ` isAtSameMicrosecondAs ` extension to ` DateTime `
10+
11+ ``` dart
12+ final DateTime specificDate = DateTime(2021, 01, 01);
13+ final DateTime otherDate = DateTime(2021, 02, 01);
14+
15+ print(specificDate.isAtSameYearAs(otherDate)); // true
16+ print(specificDate.isAtSameMonthAs(otherDate)); // false
17+ print(specificDate.isAtSameDayAs(otherDate)); // false
18+ ```
19+
120## 1.4.0
221
322- Introduce ` isToday ` extension to ` Duration `
Original file line number Diff line number Diff line change 11name : time
22description : Type-safe DateTime and Duration calculations, powered by extensions.
3- version : 1.4.0
3+ version : 1.4.1
44homepage : https://github.com/jogboms/time.dart
55author : Jogboms <jeremiahogbomo@gmail.com>
66
You can’t perform that action at this time.
0 commit comments