15.2.20. XSD date and time data types

发布时间 :2025-10-25 12:23:27 UTC      

Date and time data types are used to contain values for date and time.

Date data type (Date Data Type)

The date data type is used to define dates.

The date is defined using this format: “YYYY-MM-DD”, where:

  • YYYY represents the year

  • MM represents month

  • DD represents the number of days

注意: All the ingredients are necessary.

Here is an example of a date declaration in schema:

<xs:element name="start" type="xs:date"/>

The elements in the document should look like this:

<start>2002-09-24</start>

Time zone

To specify a time zone, you can also enter a date using UTC time by adding a “Z” after the date-like this:

<start>2002-09-24Z</start>

Or you can specify the offset based on the world adjustment time by adding a positive or negative time after the date-such as this:

<start>2002-09-24-06:00</start>
或者
<start>2002-09-24+06:00</start>

H2 > time data type (Time Data Type)

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.