toLocalTime method
dynamic
toLocalTime(
- dynamic atime
Implementation
toLocalTime(atime) {
myLogAll('toLocalTime');
try {
DateTime dt =
DateTime.fromMillisecondsSinceEpoch(getInt(atime)).toLocal();
dynamic formattedDate = DateFormat('yy-MM-dd HH:mm').format(dt);
return formattedDate;
} catch (e) {
return "";
}
}