fuzzy_time 0.3.6
fuzzy_time: ^0.3.6 copied to clipboard
A simple, dependency-free Flutter/Dart package that converts DateTime and Duration objects into human-friendly conversational fuzzy time strings e.g. 'less than 5 minutes ago', 'in about 2 hours', 'ju [...]
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.6Alternatively, 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';