Kia ora Chris,
>>> Pete Johnston <[log in to unmask]> 24/07/02 03:54:46 >>>
W3CDTF doesn't cover all the bases for duration, and there isn't a
scheme in the DCQ rec for "size"....
However ISO 8601 does offer a solution for a duration of time. I'm only interpretting the wording in clause 5.5.3.2 of the 1988 version (I don't have the 2000 version handy), but I assume 123 seconds would be:
PT0H2M3S
ie Period (P), time component (T), 0 hours (0H), 2 minutes (2M), and 3 seconds (3S).
It isn't clear if you must include the date components. If it is compulsory it would be:
P0Y0M0DT0H2M3S
NB: Fractions of seconds are not supported.
From previous discussions on this list, I have determined that you can use parts of ISO8601 and call them W3CDTF [1] even though they are not explicitly discussed in the W3CDTF note. For example ranges of dates like 1999-12-31/2000-01-01. However, using the P notation may be stretching it a bit??
Though, either way, the P notation isn't particularly elegant/readable. :-(
Thanx,
Douglas Campbell
National Library of New Zealand
[1] http://www.w3.org/TR/NOTE-datetime
|