fromNow static method
Get the specified format time string from the current timestamp.
format
Format time string.
Implementation
static String fromNow({
String format = 'yyyy-MM-dd hh:mm:ss',
}) {
final DateTime dateTime = DateTime.now();
late IDKitTimeFormat idkitTimeFormat = IDKitTimeFormat();
return idkitTimeFormat.stringFrom(dateTime, format);
}