def get_timestamp(integer):
    """
    Parses integer timestamp from csv into correctly formatted string for xml
    :param integer: input integer formatted hhmm
    :return: output string formatted to hh:mm:ss
    """
    string = str(integer)
    if len(string) == 1:
        return '00:0{}:00'.format(string)
    elif len(string) == 2:
        return '00:{}:00'.format(string)
    else:
        minutes = string[-2:]
        hours = string[:-2]
        if len(hours) == 1:
            hours = '0' + hours
        return '{}:{}:00'.format(hours, minutes)