|
|
|
|
@ -82,7 +82,12 @@ class AppDateUtils {
|
|
|
|
|
|
|
|
|
|
double hoursInOneDay = difference.inHours / difference.inDays;
|
|
|
|
|
|
|
|
|
|
return (isShowDays?"$days ${TranslationBase.of(context).days},":"")+ "$hours ${TranslationBase.of(context).hr}, $minutes ${TranslationBase.of(context).min}"+ (isShowSecond?", $second Sec":"");
|
|
|
|
|
return (isShowDays
|
|
|
|
|
? (days > 0 ? "$days ${TranslationBase.of(context).days}," : '')
|
|
|
|
|
: "") +
|
|
|
|
|
(hours > 0 ? "$hours ${TranslationBase.of(context).hr}," : "") +
|
|
|
|
|
" $minutes ${TranslationBase.of(context).min}" +
|
|
|
|
|
(isShowSecond ? ", $second Sec" : "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static String differenceBetweenServerDateAndCurrent(String str, BuildContext context) {
|
|
|
|
|
|