fuzzy_time 0.3.6 copy "fuzzy_time: ^0.3.6" to clipboard
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_time

With Flutter:

 $ flutter pub add fuzzy_time

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  fuzzy_time: ^0.3.6

Alternatively, 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';
4
likes
145
points
227
downloads

Publisher

verified publisherinteist.com

Weekly Downloads

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', 'just now', etc. Similar to time ago packages but with more flexible and natural language

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on fuzzy_time