Padded 24 HR (HH:MM) Time SimpleType for W3C Schema

/ Published in: XML
Save to your folder(s)

for Brandeis Class

Copy this code and paste it in your HTML
  1. <!-- JB -->
  3. <xsd:simpleType name="paddedTime">
  4. <xsd:restriction base="xsd:string">
  5. <xsd:length value="5"/>
  6. <xsd:pattern value="(2[0-3]|1[0-2]|0[0-9]){1}:([0-5][0-9]){1}"/>
  7. </xsd:restriction>
  8. </xsd:simpleType>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.