Skip to content

Commit

Permalink
Bumps CHANGELOG + pubspec with 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
matuella authored and jogboms committed Mar 5, 2021
1 parent c444037 commit 70e9a0c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
## 1.4.1

- 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`

```dart
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
```

## 1.4.0

- Introduce `isToday` extension to `Duration`
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: time
description: Type-safe DateTime and Duration calculations, powered by extensions.
version: 1.4.0
version: 1.4.1
homepage: https://github.com/jogboms/time.dart
author: Jogboms <jeremiahogbomo@gmail.com>

Expand Down

0 comments on commit 70e9a0c

Please sign in to comment.