time_diffrence 0.0.2
time_diffrence: ^0.0.2 copied to clipboard
This package allows you to convert DateTime formate diffrence in a words like Tommorow, Today, yesterday , 1 day ago and so on.
Time Difference #
The time_difference
package allows you to convert DateTime
differences into natural language terms such as "Tomorrow," "Today," "Yesterday," "1 day ago," and so on. This makes it easier for users to understand the relative time of events.
Features #
- Convert
DateTime
differences into natural language terms. - Understandable formats like "Tomorrow," "Today," "Yesterday," "X days ago," etc.
- Easy to use and integrate into your Flutter/Dart applications.
Getting Started #
To get started with the time_difference
package, first ensure you have the package added to your pubspec.yaml
file:
dependencies:
time_difference: ^1.0.0
Example #
For more detailed examples, refer to the /example
folder in the package repository.
Additional Information #
- Tomorrow: When the date is one day after the current date.
- Today: When the date is the same as the current date.
- Yesterday: When the date is one day before the current date.
- X days ago: When the date is X days before the current date.
Contributing #
If you would like to contribute to the package, please submit a pull request or report any issues you find. Contributions are always welcome!
License #
This project is licensed under the MIT License.