hcalendar-examples: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
No edit summary
(made example 2 more semantic, fleshed out example 3)
Line 46: Line 46:
</nowiki></pre>
</nowiki></pre>


ISSUES:
* Not sure about the dtstamp business, nor the class stuff --RyanKing
* Also, I think class="class" might break IE, need to check this --RyanKing
** Works for me. --MarkPilgrim
* MarkPilgrim: I tidied it up a bit and fudged the human display of the end date to make it like it might appear on a real web page.  Semantics are unchanged.
This hCalendar could be displayed as:
This hCalendar could be displayed as:


Line 86: Line 80:
<pre><nowiki>
<pre><nowiki>
<div class="vevent">
<div class="vevent">
   <span class="uid">19970901T130000Z-123402@host.com</span>
   <h1 class="summary">Laurel is in sensitivity awareness class.</h1>
   <span class="dtstamp">19970901T1300Z</span>
   <p>Posted on: <abbr class="dtstamp" title=19970901T1300Z">September 1, 1997</abbr></p>
   <abbr class="dtstart" title="19970401T163000Z">April 1, 1997, 16:30 UTC</abbr>
  <p class="uid">19970901T130000Z-123402@host.com</p>
   <abbr class="dtend" title="19970402T010000Z">April 2, 1997 01:00 UTC</abbr>
   <p>Dates: <abbr class="dtstart" title="19970401T163000Z">April 1, 1997, 16:30 UTC</abbr>-
   <span class="summary">Laurel is in sensitivity awareness class.</span>
   <abbr class="dtend" title="19970402T010000Z">April 2, 1997 01:00 UTC</abbr></p>
  <span class="class">public</span>
   <p>This event is <span class="class">public</span> and <span class="transp">transparent</span> to free/busy scheduling.</p>
   <span class="transp">transparent</span>
   <p>Filed under:</p>
     <ul>
     <ul>
       <li class="category">business</li>
       <li class="category">BUSINESS</li>
       <li class="category">human resources</li>
       <li class="category">HUMAN RESOURCES</li>
     </ul>
     </ul>
</div>
</div>
Line 109: Line 103:


<pre><nowiki>
<pre><nowiki>
    BEGIN:VEVENT
BEGIN:VEVENT
    UID:19970901T130000Z-123403@host.com
UID:19970901T130000Z-123403@host.com
    DTSTAMP:19970901T1300Z
DTSTAMP:19970901T1300Z
    DTSTART:19971102
DTSTART:19971102
    SUMMARY:Our Blissful Anniversary
SUMMARY:Our Blissful Anniversary
    CLASS:CONFIDENTIAL
CLASS:CONFIDENTIAL
    CATEGORIES:ANNIVERSARY,PERSONAL,SPECIAL OCCASION
CATEGORIES:ANNIVERSARY,PERSONAL,SPECIAL OCCASION
    RRULE:FREQ=YEARLY
RRULE:FREQ=YEARLY
    END:VEVENT
END:VEVENT
</nowiki></pre>
</nowiki></pre>


Line 124: Line 118:
<pre><nowiki>
<pre><nowiki>
<div class="vevent">
<div class="vevent">
  <h1 class="summary">Our Blissful Anniversary</h1>
  <p>Posted on: <span class="dtstamp" title="19970901T1300Z">September 1, 1997</abbr></p>
   <span class="uid">19970901T130000Z-123403@host.com</span>
   <span class="uid">19970901T130000Z-123403@host.com</span>
   <span class="dtstamp">19970901T1300Z"</span>
   <p>Date: <abbr class="dtstart" title="19971102">November 2, 1997</abbr></p>
  <abbr class="dtstart" title="19971102">November 2, 1997</abbr>
   <p>This event is <span class="class">confidential</span>.</p>
   <span class="summary">Our Blissful Anniversary</span>
   <p>Filed under:</p>
   <span class="class">confidential</span>
   <ul>
   <ul>
     <li class="category">anniversary</li>
     <li class="category">ANNIVERSARY</li>
     <li class="category">personal</li>
     <li class="category">PERSONAL</li>
     <li class="category">special occassion</li>
     <li class="category">SPECIAL OCCASSION</li>
   </ul>
   </ul>
@TODO: RRULE
  <p class="rrule">Repeat <span class="freq">yearly</span></p>
</div>
</div>
</nowiki></pre>
</nowiki></pre>
ISSUES:
* We have a larger discusion about RRULE that needs to be resolved, hopefully these examples will help that. --RyanKing


This hCalendar could be displayed as:
This hCalendar could be displayed as:

Revision as of 20:46, 6 October 2005

hCalendar examples

Example hCalendars.

Authors

RFC 2445 examples in hCalendar

These are 1:1 hCalendar examples for each example in RFC 2445.

4.6.1 Event Component

The following is an example of the "VEVENT" calendar component used to represent a meeting that will also be opaque to searches for busy time:

BEGIN:VEVENT
UID:19970901T130000Z-123401@host.com
DTSTAMP:19970901T1300Z
DTSTART:19970903T163000Z
DTEND:19970903T190000Z
SUMMARY:Annual Employee Review
CLASS:PRIVATE
CATEGORIES:BUSINESS,HUMAN RESOURCES
END:VEVENT

This iCalendar event as an hCalendar:

<div class="vevent">
    <h1 class="summary">Annual Employee Review</h1>
    <p>posted on <abbr class="dtstamp" title="19970901T1300Z">September 1, 1997</abbr></p>
    <p class="uid">19970901T130000Z-123401@host.com</p>
    <p>Dates: <abbr class="dtstart" title="19970903T163000Z">Septempter 3, 1997, 16:30</abbr> -
              <abbr class="dtend" title="19970903T190000Z">19:00 UTC</abbr></p>
    <p>This meeting is <span class="class">PRIVATE</span>.</p>
    <p>Filed under:</p>
    <ul>
      <li class="category">BUSINESS</li>
      <li class="category">HUMAN RESOURCES</li>
    </ul>
</div>

This hCalendar could be displayed as:

Annual Employee Review

posted on September 1, 1997

19970901T130000Z-123401@host.com

Dates: Septempter 3, 1997, 16:30 - 19:00 UTC

This meeting is PRIVATE.

Filed under:

  • BUSINESS
  • HUMAN RESOURCES

Example 2

The following is an example of the "VEVENT" calendar component used to represent a reminder that will not be opaque, but rather transparent, to searches for busy time:

BEGIN:VEVENT
UID:19970901T130000Z-123402@host.com
DTSTAMP:19970901T1300Z
DTSTART:19970401T163000Z
DTEND:19970402T010000Z
SUMMARY:Laurel is in sensitivity awareness class.
CLASS:PUBLIC
CATEGORIES:BUSINESS,HUMAN RESOURCES
TRANSP:TRANSPARENT
END:VEVENT

This iCalendar event as an hCalendar fragment:

<div class="vevent">
  <h1 class="summary">Laurel is in sensitivity awareness class.</h1>
  <p>Posted on: <abbr class="dtstamp" title=19970901T1300Z">September 1, 1997</abbr></p>
  <p class="uid">19970901T130000Z-123402@host.com</p>
  <p>Dates: <abbr class="dtstart" title="19970401T163000Z">April 1, 1997, 16:30 UTC</abbr>-
  <abbr class="dtend" title="19970402T010000Z">April 2, 1997 01:00 UTC</abbr></p>
  <p>This event is <span class="class">public</span> and <span class="transp">transparent</span> to free/busy scheduling.</p>
  <p>Filed under:</p>
    <ul>
      <li class="category">BUSINESS</li>
      <li class="category">HUMAN RESOURCES</li>
    </ul>
</div>

This hCalendar could be displayed as:

@TODO

Example 3

The following is an example of the "VEVENT" calendar component used to represent an anniversary that will occur annually. Since it takes up no time, it will not appear as opaque in a search for busy time; no matter what the value of the "TRANSP" property indicates:

BEGIN:VEVENT
UID:19970901T130000Z-123403@host.com
DTSTAMP:19970901T1300Z
DTSTART:19971102
SUMMARY:Our Blissful Anniversary
CLASS:CONFIDENTIAL
CATEGORIES:ANNIVERSARY,PERSONAL,SPECIAL OCCASION
RRULE:FREQ=YEARLY
END:VEVENT

This iCalendar event as an hCalendar fragment:

<div class="vevent">
  <h1 class="summary">Our Blissful Anniversary</h1>
  <p>Posted on: <span class="dtstamp" title="19970901T1300Z">September 1, 1997</abbr></p>
  <span class="uid">19970901T130000Z-123403@host.com</span>
  <p>Date: <abbr class="dtstart" title="19971102">November 2, 1997</abbr></p>
  <p>This event is <span class="class">confidential</span>.</p>
  <p>Filed under:</p>
  <ul>
     <li class="category">ANNIVERSARY</li>
     <li class="category">PERSONAL</li>
     <li class="category">SPECIAL OCCASSION</li>
  </ul>
   <p class="rrule">Repeat <span class="freq">yearly</span></p>
</div>

ISSUES:

  • We have a larger discusion about RRULE that needs to be resolved, hopefully these examples will help that. --RyanKing

This hCalendar could be displayed as:

@TODO

5. iCalendar Object Examples

The following example specifies a three-day conference that begins at 8:00 AM EDT, September 18, 1996 and end at 6:00 PM EDT, September 20, 1996.

BEGIN:VEVENT
DTSTAMP:19960704T120000Z
UID:uid1@host.com
ORGANIZER:MAILTO:jsmith@host.com
DTSTART:19960918T143000Z
DTEND:19960920T220000Z
STATUS:CONFIRMED
CATEGORIES:CONFERENCE SUMMARY:Networld+Interop Conference
DESCRIPTION:Networld+Interop Conference and Exhibit\nAtlanta World Congress
  Center\nAtlanta, Georgia
END:VEVENT

This iCalendar event as an hCalendar fragment:

TODO

This hCalendar could be displayed as:

TODO

Example 2

The following example specifies a group scheduled meeting that begin at 8:30 AM EST on March 12, 1998 and end at 9:30 AM EST on March 12, 1998. The "Organizer" has scheduled the meeting with one or more calendar users in a group. A time zone specification for Eastern United States has been specified.

BEGIN:VCALENDAR
PRODID:-//RDU Software//NONSGML HandCal//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:US-Eastern
BEGIN:STANDARD
DTSTART:19981025T020000
RDATE:19981025T020000
TZOFFSETFROM:-0400
TZOFFSETTO:-0500
TZNAME:EST
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:19990404T020000
RDATE:19990404T020000
TZOFFSETFROM:-0500
TZOFFSETTO:-0400
TZNAME:EDT
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:19980309T231000Z
UID:guid-1.host1.com
ORGANIZER;ROLE=CHAIR:MAILTO:mrbig@host.com
ATTENDEE;RSVP=TRUE;ROLE=REQ-PARTICIPANT;CUTYPE=GROUP:MAILTO:employee-A@host
 .com
DESCRIPTION:Project XYZ Review Meeting
CATEGORIES:MEETING
CLASS:PUBLIC
CREATED:19980309T130000Z
SUMMARY:XYZ Project Review
DTSTART;TZID=US-Eastern:19980312T083000
DTEND;TZID=US-Eastern:19980312T093000
LOCATION:1CP Conference Room 4350
END:VEVENT
END:VCALENDAR

This iCalendar as an hCalendar:

TODO

This hCalendar could be displayed as:

TODO

Example 3

BEGIN:VCALENDAR
METHOD:xyz
VERSION:2.0
PRODID:-//ABC Corporation//NONSGML My Product//EN
BEGIN:VEVENT
DTSTAMP:19970324T1200Z
SEQUENCE:0
UID:uid3@host1.com
ORGANIZER:MAILTO:jdoe@host1.com
ATTENDEE;RSVP=TRUE:MAILTO:jsmith@host1.com
DTSTART:19970324T123000Z
DTEND:19970324T210000Z
CATEGORIES:MEETING,PROJECT
CLASS:PUBLIC
SUMMARY:Calendaring Interoperability Planning Meeting
DESCRIPTION:Discuss how we can test c&s interoperability\nusing iCalendar a
 nd other IETF standards.
LOCATION:LDB Lobby
ATTACH;FMTTYPE=application/postscript:ftp://xyzCorp.com/pub/conf/bkgrnd.ps
END:VEVENT
END:VCALENDAR

This iCalendar as an hCalendar:

TODO

This hCalendar could be displayed as:

TODO

Example 4

The following is an example of a to-do due on April 15, 1998. An audio alarm has been specified to remind the calendar user at noon, the day before the to-do is expected to be completed and repeat hourly, four additional times. The to-do definition has been modified twice since it was initially created.

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ABC Corporation//NONSGML My Product//EN
BEGIN:VTODO
DTSTAMP:19980130T134500Z
SEQUENCE:2
UID:uid4@host1.com
ORGANIZER:MAILTO:unclesam@us.gov
ATTENDEE;PARTSTAT=ACCEPTED:MAILTO:jqpublic@host.com
DUE:19980415T235959
STATUS:NEEDS-ACTION
SUMMARY:Submit Income Taxes
BEGIN:VALARM
ACTION:AUDIO
TRIGGER:19980403T120000
ATTACH;FMTTYPE=audio/basic:http://host.com/pub/audio-files/ssbanner.aud
REPEAT:4
DURATION:PT1H
END:VALARM
END:VTODO
END:VCALENDAR

This iCalendar as an hCalendar:

TODO

This hCalendar could be displayed as:

TODO

Example 5: journal entry

The following is an example of a journal entry.

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ABC Corporation//NONSGML My Product//EN
BEGIN:VJOURNAL
DTSTAMP:19970324T120000Z
UID:uid5@host1.com
ORGANIZER:MAILTO:jsmith@host.com
STATUS:DRAFT
CLASS:PUBLIC
CATEGORY:Project Report, XYZ, Weekly Meeting
DESCRIPTION:Project xyz Review Meeting Minutes\nAgenda\n1. Review of projec
 t version 1.0 requirements.\n2. Definition of project processes.\n3. Revie
 w of project schedule.\nParticipants: John Smith, Jane Doe, Jim Dandy\n-It
  was decided that the requirements need to be signed off by product market
 ing.\n-Project processes were accepted.\n-Project schedule needs to accoun
 t for scheduled holidays and employee vacation time. Check with HR for spe
 cific dates.\n-New schedule will be distributed by Friday.\n-Next weeks me
 eting is cancelled. No meeting until 3/23.
END:VJOURNAL
END:VCALENDAR

This iCalendar as an hCalendar:

TODO

This hCalendar could be displayed as:

TODO

Example 6. Free/Busy time

The following is an example of published busy time information. The iCalendar object might be placed in the network resource www.host.com/calendar/busytime/jsmith.ifb.

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//RDU Software//NONSGML HandCal//EN
BEGIN:VFREEBUSY
ORGANIZER:MAILTO:jsmith@host.com
DTSTART:19980313T141711Z
DTEND:19980410T141711Z
FREEBUSY:19980314T233000Z/19980315T003000Z
FREEBUSY:19980316T153000Z/19980316T163000Z
FREEBUSY:19980318T030000Z/19980318T040000Z
URL:http://www.host.com/calendar/busytime/jsmith.ifb
END:VFREEBUSY
END:VCALENDAR

This iCalendar as an hCalendar:

TODO

This hCalendar could be displayed as:

TODO


Other