Sanjay Vakil
2006-May-25 04:12 UTC
[Vpim-talk] differentiating dates and times in dtstart/dtend?
Hiya! First off, thanks for the incredible work. Secondly, is there a way to distinguish between events which are fundamentally "day" events and those which have a time component? Looking at a .ics file, the latter looks like this: DTSTART:20060428T220000Z DTEND:20060429T040000Z and date events like this: DTSTART;VALUE=DATE:20060426 DTEND;VALUE=DATE:20060427 Looking at the pretty printed output of a decoded event, it looks like the distinction is being maintained: #<Vpim::DirectoryInfo::Field:0x110c4d8 @group=nil, @line="DTSTART;VALUE=DATE:20060426", @name="DTSTART", @params={"VALUE"=>["DATE"]}, @value="20060426">, But I''m wondering if there is a way to distinguish this without diving down into the DirectoryInfo layer. Ideally, I''d like to be able to query an event directly. Here''s hoping I haven''t asked a dippy question, sanjay -- The world tends to work out for me. I try to give it reason to.
Sam Roberts
2006-May-25 17:08 UTC
[Vpim-talk] differentiating dates and times in dtstart/dtend?
On Thu, May 25, 2006 at 12:12:35AM -0400, Sanjay Vakil wrote:> Secondly, is there a way to distinguish between events which are > fundamentally "day" events and those which have a time component?I have the changes locally to make dtstart/... return Date or Time, depending on what the start is. The change breaks other things. :-( I will try and release this weekend. And of course its not a dippy question! Cheers, Sam