Quoting cosmin at speakeasy.net, on Tue, Apr 25, 2006 at 03:34:20PM
-0700:> Hi!
>
> I just started playing with vpim and I think it''s a great library
(thanks for sharing it with the community).
> I have a small problem though when I parse all day events. I''m
not sure how to differentiate between an event that has a startdate property
with a value of type DATE and one that is a DATETIME. Currently the
"dtstart" method returns a Time object and it''s not clear how
to make the distinction.
>
> So something like this should be an all day event:
> DTSTART;VALUE=DATE;20060101
> DTEND;VALUE=DATE;20060102
>
> This is a timed event:
> DTSTART:20030915T161500Z
> DTEND:20030915T171500Z
>
> For both dtstart returns a Time object. I need to know that I can ignore
the time part from the first case.
I think thats a bug, sorry, I think it should return a Date.
I''ll look at it next week, I''m pretty busy right now.
I''m trying to use the builting Time and Date objects, but they
don''t map
really well to time and date as it is used in iCalendar. Hopefully I can
just make sure the right type is returned, and it won''t break other
things.
Thanks,
Sam