This project is for calculating "Date Time".
Supported languages; English and Turkis for now.
// import package to page
import 'package:date_time_ago/date_time_ago';
Include short and useful examples for package users. Add longer examples
to "/example
" folder.
// create once object
final dateTimeAgo = DateTimeAgo();
final dateTime = DateTime.now().subtract(const Duration(days: 1));
// default Turkish
print(dateTimeAgo.toCalculate(dateTime));
// usage English
print(dateTimeAgo.toCalculate(
dateTime,
locale: DateTimeAgoLocalesEnums.english,
));