from datetime import datetime


def dateFormat(timestamp):
    """
    Format timestamp (nb of sec, float) into a human-readable date string
    """
    formatStr = '%a %b %d, %Y - %H:%M'
    try:
        return datetime.fromtimestamp(int(timestamp) or 86400).strftime(formatStr)
    except OSError as e:
        return datetime.today().strftime(formatStr)