Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with 'end_date' for events that last several days? #11

Open
MargotBr opened this issue Mar 31, 2020 · 0 comments
Open

Problem with 'end_date' for events that last several days? #11

MargotBr opened this issue Mar 31, 2020 · 0 comments

Comments

@MargotBr
Copy link

Hello Andrie,

I'm encountering problems to extract information from events that last several days.

Here is an example of an event that lasts 2 full days (i.e. 2021-02-09 and 2021-02-10).

Capture d’écran 2020-03-31 à 11 02 08

Her is my code:

library(gcalendr)
library(dplyr)

my_cal_id <- "[email protected]"
calendar_auth(my_cal_id)

events <- calendar_events(my_cal_id, days_in_past = 0, days_in_future = 365)

events %>%
     filter(start_date == "2021-02-09") %>%
     select(start_date, end_date)`

The calendar_events() function returns for this event :
start_date = 2021-02-09 and end_date = 2021-02-09

And not start_date = 2021-02-09 and end_date = 2021-02-10

Is there another solution for this kind of problematic?

Thanks in advance,

Margot

MargotBr pushed a commit to MargotBr/gcalendr that referenced this issue Mar 31, 2020
@MargotBr MargotBr mentioned this issue Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant