from datetime import datetime


def strftime(time):
    """ Return a string representing the date and time as expressed in the RFC 3339 date-time format.
    https://tools.ietf.org/html/rfc3339"""
    text = datetime.strftime(time, "%Y-%m-%dT%H:%M:%S%z")
    return text[:22] + ":" + text[22:]