time_ago_provider 0.0.1 copy "time_ago_provider: ^0.0.1" to clipboard
time_ago_provider: ^0.0.1 copied to clipboard

outdated

A Library that takes a time stamp value and returns an interval String of the time that passed between the given time stamp to the present (Now). (e.g. "7 minutes ago" ).

example/time_ago_provider_example.dart

import 'package:time_ago_provider/time_ago_provider.dart';

void main()
{
  //Normal Usage
  int myTimeStamp = DateTime.now().millisecondsSinceEpoch; // Get the current time stamp
  print(TimeAgo.getTimeAgo(timeStamp: myTimeStamp)); //getTimeAgo(int timeStamp) returns a String " X minutes/hours/days/months/years ago ..."

  //With Language
  int mySecondTimeStamp = DateTime.now().millisecondsSinceEpoch;
  print(TimeAgo.getTimeAgo(timeStamp: mySecondTimeStamp, language: Language.GERMAN)); //Default Language ENGLISH
}
32
likes
0
pub points
87%
popularity

Publisher

unverified uploader

A Library that takes a time stamp value and returns an interval String of the time that passed between the given time stamp to the present (Now). (e.g. "7 minutes ago" ).

Homepage

License

unknown (LICENSE)

More

Packages that depend on time_ago_provider