Recurring Dates and Durations #128
Unanswered
underdog57
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hello, Sorry, I don't really follow what you are attempting to do and what doesn't work for you (or what you don't understand). Could you please share a piece of code that you are trying? |
Beta Was this translation helpful? Give feedback.
1 reply
-
First of all, switching between timezones doesn't make a difference. Why do you do that? I don't understand what is "Example 1" and what is "Example 2". You only create one event. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First off, great bit of code and as advertised, much easier to use. My questions relate to how duration:dates and duration:periods are handled. Using the data below, the dates and start times are correct, however the end times for days 2 and 3 are at 20:30 (10 hour delta) - which happens to be the same delta as day 1, rather than the 2 hour expected delta.
I've also tried a start datetime, Duration where duration is a timedelta, which generates an error : duration required, not timedelta.
(all objects are datetime wth timezone)
All event start/end are datetime object with timezone
Day 1:
start 2022-03-14 08:00:00-04:00
end 2022-03-14 18:00:00-04:00
Day 2:
recurrence= Recurrence:periods((2022-03-23 10:30:00-04:00, 2022-03-23 12:30:00-04:00), (2022-03-14 08:00:00-04:00, 2022-03-14 18:00:00-04:00))
Thoughts? (and thanks)
Beta Was this translation helpful? Give feedback.
All reactions