getTimeAgo static method
Implementation
static String getTimeAgo(String strDatetime) {
final now = DateTime.now();
final ago = stringToDateTime(strDatetime);
final dua = now.difference(ago);
final Constants constants = Constants();
timeago.setLocaleMessages(constants.localeVILang, timeago.ViMessages());
return timeago.format(now.subtract(dua), locale: constants.localeVILang);
}