def get_timestamp(year, month, day, hour, minute):
    """
    Formats timestamp from time data.
    """
    hour %= 24
    minute %= 60
    timestamp = 'TIMESTAMP \'{0}-{1}-{2} {3}:{4}:00\''.format(year, month, day, hour, minute)
    return timestamp