def format_showtime(value):
    """Convert datetime object to string containing only the showtime.

    Example:
    YYYY-MM-DD H:M:S --> I:M:p
    1900-01-01 23:59:59 --> 11:59pm

    Parameters
    ----------
    value: datetime
        The date and time for the given screening.

    Returns
    -------
    showtime
        The showtime for the film, with am/pm in lowercase and stripped of
        leading 0.

    """
    showtime = value.strftime('%I:%M%p').lower().lstrip('0')
    return showtime