import time


def normalize_date(formatting: str, date: int) -> str:
    """
    Converts date from nanoseconds to the human readable form

    Args:
        format (str): example %h-%d-%Y for mm-dd-yyyy
        date (int): date in nanoseconds

    Returns:
        str: Human readable format of a date
    """
    return time.strftime(formatting, time.localtime(date))