You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a rrule::RRuleSet via its new() method, but can't figure out how to create a DateTime<Tz> instance (which is what this method requires).
I essentially have a DTSTART:19700101T000000 string as a starting point, and use the following to get a DateTime instance:
However, this returns a DateTime<Local>, and I can't quite figure out how to convert that to DateTime<Tz>. I intuitively think that new should maybe have the signature fn new<T>(dt_start: DateTime<T>) where T: TimeZone. I've no idea if this makes sense for all the rest of codebase, but it would allow using any TimeZone (including Local).
For context, I'm trying to parse VTIMEZONE entries, so I'm trying to construct this RRuleSet to then add other relevant fields to it (e.g.: RDATE).
The text was updated successfully, but these errors were encountered:
I'm trying to create a
rrule::RRuleSet
via itsnew()
method, but can't figure out how to create aDateTime<Tz>
instance (which is what this method requires).I essentially have a
DTSTART:19700101T000000
string as a starting point, and use the following to get aDateTime
instance:However, this returns a
DateTime<Local>
, and I can't quite figure out how to convert that toDateTime<Tz>
. I intuitively think thatnew
should maybe have the signaturefn new<T>(dt_start: DateTime<T>) where T: TimeZone
. I've no idea if this makes sense for all the rest of codebase, but it would allow using any TimeZone (includingLocal
).For context, I'm trying to parse
VTIMEZONE
entries, so I'm trying to construct thisRRuleSet
to then add other relevant fields to it (e.g.:RDATE
).The text was updated successfully, but these errors were encountered: