Rules / IBR-119
A time must be formatted hh:mm:ss with optional fractional seconds .sss and time zone expression
A time must be formatted hh:mm:ss with optional fractional seconds .sss and time zone expression (ibt-168).
Fails
<cbc:IssueTime>9:30</cbc:IssueTime>
Fix
Write times as hh:mm:ss, for example <cbc:IssueTime>09:30:00</cbc:IssueTime>. Fractional seconds and a time zone (+04:00) are optional. The rule checks every element whose name ends in Time.
Schematron
- Context
//*[namespace-uri()='urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2' and ends-with(local-name(), 'Time')]- Test
(string(.) castable as xs:time)
Official text: A time MUST be formatted hh:mm:ss with optional fractional seconds .sss and time zone expression (ibt-168).