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
+
1
20
## 1.4.0
2
21
3
22
- Introduce ` isToday ` extension to ` Duration `
Original file line number Diff line number Diff line change 1
1
name : time
2
2
description : Type-safe DateTime and Duration calculations, powered by extensions.
3
- version : 1.4.0
3
+ version : 1.4.1
4
4
homepage : https://github.com/jogboms/time.dart
5
5
author :
Jogboms <[email protected] >
6
6
You can’t perform that action at this time.
0 commit comments