from datetime import datetime


def convert_to_military(time):
    """ Return time in military format. """
    tmp = datetime.strptime(time, "%I:%M:%S%p")
    return datetime.strftime(tmp, "%H:%M:%S")