timeAgo property

String? get timeAgo

Returns the time difference from this DateTime to the current DateTime in Indian language.

Example:

DateTime dateTime = DateTime.tryParse("2023-05-24 13:19:55.565473");
String? timeAgo = dateTime.timeAgo;
print('Time Ago: $timeAgo');

Implementation

String? get timeAgo {
  return timeAgoCalculated(this);
}