def epoch_datetime(epoch): DT = datetime.fromtimestamp(epoch).strftime(DATETIME_FORMAT) return "%s" % (DT)