PEF Element: timestamp

Description:

The PEF timestamp element consists of a PEF date element and a PEF time element. The date element is mandatory.

Proposed Usage:

This datatype was developed to support the Epicentre timestamp data type. It is intended as a direct mapping from Epicentre to an XML file. It is expected that applications outside of PEF mappings will use the XML Schema timeInstant datatype, which is an encoding of a timestamp following ISO 8601.

XML Schema:

  • The schema and examples do not explicitly show the lines that set the namespaces.
  • All schema examples will use xsd: as the namespace for the schema tags and datatypes, and null for all the locally generated namespaces.
  • The defining file, either peftypes_u.xsd or peftypes_q.xsd, must be imported into the document building the application schema.
  • It is recommended that these elements and their subelements have a namespace qualifier. The recommended qualifier is 'pef'.
  • <xsd:element name="timestamp" type="timestamp"/>
    

    Sample Usage Schema:

  • The element is globally defined. It is recommended that elementFormDefault be "qualified."
  •   <element name="expiry_date">
       <complexType>
        <sequence>
         <element ref="pef:timestamp"/>
        </sequence>
       </complexType>
      </element>
    

    Sample XML:

    The example will show namespace of 'pef'

      <expiry_date>
        <pef:timestamp>
          <pef:date>
            <pef:year>2002</pef:year>
            <pef:month>06</pef:month>
            <pef:day>30</pef:day>
          </pef:date>
          <pef:time>
            <pef:hour>12</pef:hour>
            <pef:uctOffset>-5</pef:uctOffset>
          </pef:time>
        </pef:timestamp>
      </expiry>
    

    Last Modified: March 21, 2001
    ©Copyright 2001 POSC. All rights reserved.