value-dt-test-abbr-YYYY-MM-DD--HH-MM: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(→‎results: noted X2V 0.9.3 passes the test)
(→‎expected iCalendar output: added acceptable variant without the VALUE parameter on the DTSTART iCal property)
Line 58: Line 58:
The key line that an hCalendar to iCalendar converter must match in order to pass this test:
The key line that an hCalendar to iCalendar converter must match in order to pass this test:


<pre><nowiki>
<source lang=text>
DTSTART;VALUE=DATE-TIME:20080624T183000
DTSTART;VALUE=DATE-TIME:20080624T183000
</nowiki></pre>
</source>
 
Acceptable variant:
 
<source lang=text>
DTSTART:20080624T183000
</source>


== results ==
== results ==

Revision as of 23:24, 6 July 2009

One of several value class pattern date and time value test cases. Marked up with the test-fixture poshformat.

author
Tantek Çelik

testing

value-class-pattern date and time parsing:

  • YYYY-MM-DD in abbr element title attribute, with locale/language-specific contents
  • HH:MM

in an hCalendar event.

markup pattern

Here is the markup pattern fragment (escaped, and with abstract not real values) that is being tested:

<span class="dtstart">
  <abbr class="value" title="YYYY-MM-DD">this day of the week</abbr> 
  at <span class="value">HH:MM</span>
</span>

test

hCalendar test in actual markup on the page (view or edit source to see actual hCalendar markup)

The weekly dinner will be on this Tuesday at 18:30

expected iCalendar output

Here is the expected iCalendar output, omitting optional "X-" properties, and implementation specific "PRODID" property:

BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
CALSCALE:GREGORIAN
BEGIN:VEVENT
SUMMARY;LANGUAGE=en;CHARSET=utf-8:weekly dinner
DTSTART;VALUE=DATE-TIME:20080624T183000
END:VEVENT
END:VCALENDAR

The key line that an hCalendar to iCalendar converter must match in order to pass this test:

DTSTART;VALUE=DATE-TIME:20080624T183000

Acceptable variant:

DTSTART:20080624T183000

results

see also