Get list of the day events from Google Calendar

前端 未结 2 1423
温柔的废话
温柔的废话 2020-12-15 01:28

I can not figure out how to get a list of events of a particular day, no matter whether they started the day or before and are not over yet?

In this page https://dev

相关标签:
2条回答
  • 2020-12-15 01:58

    I beg your pardon, the setting of timeMin open-bound and that of timeMax is close-bound in the lookup period. Setting the values to timeMin='2012-10-25T00:00:01Z' and timeMax='2012-10-25T23:59:59Z' will give the desired output.

    0 讨论(0)
  • 2020-12-15 02:04

    Actually, I think this should be:

    timeMin='2012-10-25T00:00:00Z' 
    timeMax='2012-10-26T00:00:00Z' 
    

    Since timeMax is exclusive in your example if you happen to have a calendar event on the 25th at 11:59:59pm you wouldn't retrieve it (rare, I know, but still possible).

    This is how I've done it, even though now I'm running into another issue with retrieving calendar events.

    0 讨论(0)
提交回复
热议问题