def to_gcal_datetime(date, time):
    """Convert date and time to google formatted datetime.

    Arguments:
        date -- datetime object
        time -- time string containing the time

    Return:
        gcal_datetime -- formatted date string

    """
    gcal_datetime = '{}-{:>02}-{:>02}T{}:00+08:00'.format(
        date.year, date.month, date.day, time)
    return gcal_datetime