mirror of
https://github.com/hanskokx/arcane_helper_utils.git
synced 2026-05-14 10:29:07 +02:00
@@ -102,6 +102,7 @@ These are broken down into the following categories:
|
|||||||
- Start and end of period calculations
|
- Start and end of period calculations
|
||||||
- Comparison operations
|
- Comparison operations
|
||||||
- Period information operations
|
- Period information operations
|
||||||
|
- "Yesterday" and "tomorrow" getters
|
||||||
|
|
||||||
#### Start and End of Period Calculations
|
#### Start and End of Period Calculations
|
||||||
|
|
||||||
@@ -235,6 +236,22 @@ The following operations are now available on a `DateTime` object:
|
|||||||
final DateTime sunday = today.firstDayOfWeek; // Sunday
|
final DateTime sunday = today.firstDayOfWeek; // Sunday
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### "Yesterday" and "tomorrow" getters
|
||||||
|
|
||||||
|
- `yesterday`: returns a new `DateTime` object for the previous start of day.
|
||||||
|
|
||||||
|
```dart
|
||||||
|
final DateTime now = DateTime.now(); // 2024-10-07 13:37:48.274
|
||||||
|
final DateTime yesterday = DateTime(0).yesterday; // 2024-10-06 00:00:00.000
|
||||||
|
```
|
||||||
|
|
||||||
|
- `tomorrow`: returns a new `DateTime` object for tomorrow's start of day.
|
||||||
|
|
||||||
|
```dart
|
||||||
|
final DateTime now = DateTime.now(); // 2024-10-07 13:37:48.274
|
||||||
|
final DateTime tomorrow = DateTime(0).tomorrow; // 2024-10-08 00:00:00.000
|
||||||
|
```
|
||||||
|
|
||||||
### JWT Parsing
|
### JWT Parsing
|
||||||
|
|
||||||
These extensions enhance the `String` class with JWT-specific functionalities,
|
These extensions enhance the `String` class with JWT-specific functionalities,
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
name: arcane_helper_utils
|
name: arcane_helper_utils
|
||||||
description: Provides a variety of helpful utilities and extensions for Flutter
|
description: Provides a variety of helpful utilities and extensions for Flutter
|
||||||
and Dart.
|
and Dart.
|
||||||
version: 1.0.4
|
version: 1.0.4+1
|
||||||
repository: https://github.com/hanskokx/arcane_helper_utils
|
repository: https://github.com/hanskokx/arcane_helper_utils
|
||||||
issue_tracker: https://github.com/hanskokx/arcane_helper_utils/issues
|
issue_tracker: https://github.com/hanskokx/arcane_helper_utils/issues
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user