Posted By

jellyfishtree on 10/25/10


Tagged

xsd


Versions (?)

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


 / Published in: XML
 

for Brandeis Class

  1. <!-- JB -->
  2.  
  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  

You need to login to post a comment.