cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject Re: Update/sample for calendar...
Date Wed, 06 Sep 2000 19:24:15 GMT
On Wed, 6 Sep 2000, John Morrison wrote:

> Think the expanded version (below) is a good idea.  But what do you
> mean by shortest time unit (e.g. date)?  How would you display one
> month?  Could you specify a start month and an end month or duration (ie
> 5 months)?

the shortest time unit is just that - the shortest time unit that you care
about. let's see, example. our month view could be configured:

 <calendar:start-date>01-01-2000 00:00:00</calendar:start-date>
 <calendar:stop-date>01-31-2000 00:00:00</calendar:stop-date>

to generate

<year value="2000">
 <month value="1">
  <week value="1">
   <date value="1"/>
   <date value="2"/>
   <date value="3"/>
   <date value="4"/>
   <date value="5"/>
   <date value="6"/>
   <date value="7"/>
  <week value="4">
   <date value="31"/>

but a hourly view of a single day could be configured:

 <calendar:start-date>01-01-2000 00:00:00</calendar:start-date>
 <calendar:stop-date>01-01-2000 23:59:59</calendar:stop-date>

to generate:

<date value="1">
 <hour value="0"/>
 <hour value="1"/>

i honestly can't tell whether it would be better to try to tackle a
generic calendar this way or whether it would be better to just provide
methods to generate calendar views in the way most people would want to
see them (year view, month view, week view, day view, etc.)

- donald

> I was also thinking about attempting to parse/retrieve the calendar data
> from Outlook (M$ I know but work must...) or another PIM?

good luck. i'll be curious to see what you turn up. i've had good success
extracting data from GNOME applications since they almost exclusively use
nice well-formed XML for their file formats (gzip compressed, natch), but
i don't hold out much hope for m$ products.

- donald

View raw message