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

From Microformats Wiki
Jump to navigation Jump to search
(drafted)
 
(→‎results: verified that X2V 0.9.3 passes this test.)
Line 79: Line 79:


== results ==
== results ==
* none yet.
<div class="history">
* 2009-06-26: Brian Suda's [[X2V]] has been updated (as of X2V 0.9.3) to pass this test! See [http://suda.co.uk/projects/X2V/#H2I Brian Suda's X2V hCalendar-2-iCalendar converter on his site] to re-run and verify this test case for yourself. Or use this converter link to produce results from this test case page directly:
** http://suda.co.uk/projects/microformats/hcalendar/get-cal.php?uri=http://microformats.org/wiki/value-dt-test-abbr-YYYY-MM-DD-abbr-HH-MM%23uf
** verified by [[User:Tantek]] 2009-07-06.


</div> <!-- test-fixture -->
</div> <!-- test-fixture -->

Revision as of 01:23, 7 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 abbr element title attribute, with locale/language-specific contents

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">
  day of the week, month, and day
  </abbr> 
  at 
  <abbr class="value" title="HH:MM">
  HHpm
  </abbr>
</span>

test

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

The sample event will take place on Friday, June 5th at 8pm

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:sample event
DTSTART;VALUE=DATE-TIME:20090605T200000
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:20090605T200000

Acceptable variant:

DTSTART:20090605T200000

results

derivation

This test was derived from the first example shown after "the following are possible" in Jeremy Keith's blog post Microformation.

see also