z_time_ago 0.0.6
z_time_ago: ^0.0.6 copied to clipboard
A flutter package to get duration between current date and a given date for kurdish, arabic and english languages.
This package is used to get time duration from now and given time for kurdish, arabic and english, simple and easy to use.
Features #
Changes date to time ago.
Getting started #
Install it #
add package to your pubspec.yaml file
dependecies:
flutter:
sdk: flutter
z_time_ago: any
Or #
Run this command in terminal
flutter pub add z_time_ago
Import it #
import it
import 'package:z_time_ago/z_time_ago.dart';
Usage #
With DateTime Type #
String result = ZTimeAgo().getTimeAgo(
date: DateTime.parse('2021-01-15 20:50:36.977'),
language: Language.kurdish,
);
With String Type #
String result = ZTimeAgo().getTimeAgo(
date: '2021-01-15 20:50:36.977',
language: Language.kurdish,
);