fuzzy_time 0.3.7
fuzzy_time: ^0.3.7 copied to clipboard
No dependencies,pure Dart package to convert DateTime and Duration into fuzzy time strings e.g. 'less than 5 minutes ago', 'in about 2 hours', 'just now', etc.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add fuzzy_timeWith Flutter:
$ flutter pub add fuzzy_timeThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
fuzzy_time: ^0.3.7Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:fuzzy_time/fuzzy_time.dart';