isTimeAgoOnlineFormat static method
Implementation
static bool isTimeAgoOnlineFormat({String? date}) {
if (date != null) {
var time = date.split("+");
if (time != null) {
var inputFormat = DateFormat("yyyy-MM-dd'T'HH:mm:ss");
var inputDate = inputFormat.parse(time[0]);
Duration diff = DateTime.now().difference(inputDate);
if (diff.inHours <= 1) {
return true;
}
}
return false;
} else {
return false;
}
}