get_time_ago 0.0.2 icon indicating copy to clipboard operation
get_time_ago: ^0.0.2 copied to clipboard

A new Flutter package for getting time formats in secons, minutes, hours, days and date.

A new Flutter package for getting time formats in seconds, minutes, hours, days and date.

pub package Build Status

Usage #

import 'package:get_time_ago/get_time_ago.dart';
var dateTime = DateTime.now();

var result = TimeAgo.getTimeAgo(dateTime);
print(result);

If you have saved DateTime as string in database, then you can parse it as:

import 'package:get_time_ago/get_time_ago.dart';
var dateTime = timestamp; // String DateTime from backend.

var result = TimeAgo.getTimeAgo(DateTime.parse(timestamp));
print(result);
32
likes
80
pub points
88%
popularity

Publisher

shield icon for verified publishersnixlab.co.in

A new Flutter package for getting time formats in secons, minutes, hours, days and date.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on get_time_ago