String timeStampToDateTime(int timestamp, String pattern) { return DateFormat(pattern).format(DateTime.fromMillisecondsSinceEpoch(timestamp)); }