📅  最后修改于: 2022-03-11 14:46:35.603000             🧑  作者: Mango
the_datetime = tz.localize(datetime.datetime(2016, 1, 3, 0))
the_datetime2 = tz.localize(datetime.datetime(2016, 1, 4, 8))
body = {
"timeMin": the_datetime.isoformat(),
"timeMax": the_datetime2.isoformat(),
"timeZone": 'US/Central',
"items": [{"id": 'my.email@gmail.com'}]
}
eventsResult = service.freebusy().query(body=body).execute()