Windows apps
Collapse the table of content
Expand the table of content

Attribute Time Formats

banner art

Attribute Time Formats

Windows Media Services supports the SMIL 2.0 Clock-value time formats. You can use any of the formats interchangeably in any attribute that can include a clock value. There are three types of clock values:

  • A full-clock value contains hours, minutes, and seconds, separated by colons (:), and optionally, a decimal fraction of a second.
  • A partial-clock value contains only minutes and seconds separated by a colon, and optionally, a decimal fraction of a second.
  • A timecount value can specify hours, minutes, seconds, or milliseconds, but only one of these can exist in a single timecount value. An optional decimal fraction can be appended to the numerical value, and the numerical value is followed, with no intervening space, by an h for hours, min for minutes, s for seconds, or ms for milliseconds. If no units are specified, the value defaults to seconds.

The following table shows syntax examples for all three types of clock values.

Clock-value type Example Meaning
Full-clock 02:30:03 2 hours, 30 minutes, and 3 seconds
Full-clock 2:30:3 2 hours, 30 minutes, and 3 seconds. Leading zeros are optional.
Full-clock 50:00:10.25 50 hours, 10 seconds, and 250 milliseconds
Partial-clock 02:33 2 minutes and 33 seconds
Partial-clock 00:10.5 10 seconds and 500 milliseconds (10.5 seconds)
Timecount 3.2h 3.2 hours
Timecount 45min 45 minutes
Timecount 30s 30 seconds
Timecount 5ms 5 milliseconds
Timecount 12.47 12 seconds and 470 milliseconds (Defaults to seconds if no units are specified.)

No embedded white space is permitted in a clock value. Leading and trailing white space is ignored. SMPTE frames are not supported. Negative offset clock values are not supported.

  • Note   For more information about the SMIL 2.0 Specification, W3C Recommendation, see the W3C Web site.

Web addresses can change, so you might be unable to connect to the Web site or sites mentioned here.

See Also

© 2017 Microsoft