Datatype: timestamp

Description:

An element of type timestamp will have two subelements:

Proposed Usage:

This datatype was developed to support the Epicentre timestamp data type. Its intended usage is shown in the PEF timestamp element document. It is not anticipated that it will be useful outside of the PEF application.

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.
  • XML Examples will exclude namespace modifiers for clarity. Actual XML will probably need namespaces.
  • The schema uses the parsedDateType and parsedTimeType from the useful_types file, and must be included.
  • <xsd:complexType name="timestamp">
      <xsd:sequence>
        <xsd:element name="date" type="parsedDateType"/>
        <xsd:element name="time" type="parsedTimeType" minOccurs="0"/>
      </xsd:sequence>
    </xsd:complexType>
    

    Sample Usage Schema:

       <element name="spudDate" type="timestamp"/>
    

    Sample XML:

       <spudDate>
        <date>
         <year>2000</year>
         <month>09</month>
         <day>22</day>
        </date>
        <time>
         <hour>6</hour>
         <minute>30</minute>
         <timeZone>CDT</timeZone>
        </time>
       </spudDate>
    

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