notification_google_calendar.py
def create_event_datetimes(options, config):
    """
    Create event start and end datetimes.
    """

    now = datetime.datetime.now()

    return {
        "start": {
            "dateTime": (now + datetime.timedelta(minutes=int(config["start"]))).strftime(DT_FORMAT),
            "timeZone": options.timezone,
        },
        "end": {
            "dateTime": (now + datetime.timedelta(minutes=int(config["end"]))).strftime(DT_FORMAT),
            "timeZone": options.timezone,
        },
    }
def create_event_datetimes(options, config):
    now = datetime.datetime.now()

    return {
        "start": {
            "dateTime": (now + datetime.timedelta(minutes=int(config["start"]))).strftime(DT_FORMAT),
            "timeZone": options.timezone,
        },
        "end": {
            "dateTime": (now + datetime.timedelta(minutes=int(config["end"]))).strftime(DT_FORMAT),
            "timeZone": options.timezone,
        },
    }
def create_event_datetimes ( options , config ) : now = datetime . datetime . now ( ) return { "start" : { "dateTime" : ( now + datetime . timedelta ( minutes = int ( config [ "start" ] ) ) ) . strftime ( DT_FORMAT ) , "timeZone" : options . timezone , } , "end" : { "dateTime" : ( now + datetime . timedelta ( minutes = int ( config [ "end" ] ) ) ) . strftime ( DT_FORMAT ) , "timeZone" : options . timezone , } , }
Create event start and end datetimes.
Create event start and end datetimes .