How to exclude all day events from Google calendar api searches? -


i have small script pulls down meetings via google calendar events.list api. i'd ignore "all day" meetings. seems it's not possible wanted ask if knows how.

take @ event resource representation. (i've added comments.)

{   "kind": "calendar#event",   "etag": etag,   "id": string,   ...   "start": {     "date": date,               // all-day     "datetime": datetime,       // others     "timezone": string   },   "end": {     "date": date,               // all-day     "datetime": datetime,       // others     "timezone": string   },   ... } 

the representation doesn't point out these properties not present in every instance.

it turns out all-day events start have start.date property, while other events start have start.datetime. likewise end. can use filter out uninteresting events.

you'll see these properties used in google apps script: event.settime error , time format.


Comments