Precise Expansion Patterns (was: Re: [uf-discuss] Hcalendar in bbc.co.uk/programmes)

Paul Wilkins pmw57 at xtra.co.nz
Fri Dec 14 16:36:54 PST 2007


On Dec 15, 2007 1:21 PM, Martin McEvoy <martin at weborganics.co.uk> wrote:
> On Sat, 2007-12-15 at 12:33 +1300, Paul Wilkins wrote:
> > On Dec 15, 2007 12:18 PM, Martin McEvoy <martin at weborganics.co.uk> wrote:
> > > you could perhaps do PT3:23 ? which seems more accurate
> > Then it won't be able to be parsed as an actual time.
>
> hmm are you sure? 3:23 is expressed as whole plus a decimal fraction

That's if you use a comma or a fullstop. With the full colon it's
interpreted as hours and minutes.
[QUOTE]
It is also acceptable to omit elements to reduce precision. [hh]:[mm],
[hh][mm] and [hh] are all used.

Decimal fractions may also be used with any of the three time
elements. These are indicated by using the decimal point (either a
comma (which is preferred ISO 31) or dot). A fraction may only refer
to the most precise component of a time representation. To denote "14
hours, 30 and one half minutes", do not include a seconds figure.
Represent it as "14:30,5" or "1430,5".
[/QUOTE]

-- 
Paul Wilkins


More information about the microformats-discuss mailing list