Schema Central > NewsML 1.2 > NewsML_1.2.xsd > NewsMLDateTime
Advanced search
Need Schema Help?

Recommended Reading:

Definitive XML Schema

 

Web Service Contract Design and Versioning for SOA

 

Advanced XML Applications

 

NewsMLDateTime

 The date and (optionally) time at which a piece of metadata was assigned. 
				Uses the format YYYYMMDDTHHMMSS{+or-}HHMM (year, month, day, time separator, hours, minutes, seconds, timezone separator, hours, minutes). If only the Date is needed, then the substring from T onwards may be omitted. Where the offset difference is +0000 the letter suffix "Z" may alternatively be used. 
				This is the Basic Format defined by ISO 8601.  YYYY is a 4-digit year number. MM is a 2-digit month number. DD is a 2-digit day number. T is the letter 'T'. HH is a 2-digit hour number (using a 24-hour clock). MM is a 2 digit minute number. (Note that midnight may be represented as 240000 on the date of the day that is ending, or as 000000 on the date of the day that is beginning.) 
				{+or-} is the '+' character or the '-' character, and the following HHMM are hours and minutes of offset from Universal Co-ordinated Time (UTC) as defined by ISO 8601. If the time is being expressed in UTC, then the timezone offset may be '+0000' or '-0000'. If the time is behind UTC, the timezone separator is '-'. If the time is ahead of UTC the timezone separator is '+'.
				Example: 10:27 p.m. in New York on 31 December 2000 would be expressed as "20001231T222700-0500" as New York is five hours behind UTC in winter. At the same moment in London, the date and time would be expressed as "20010101T032700+0000" or as "20010101T032700-0000" because in London it is now 3:27 a.m. on 1 January 2001. At the same moment in Paris,the date and time would be expressed as "20010101T042700+0100", because Paris is one hour ahead of UTC in winter and it is now 4:27 a.m. on 1 January 2001

Simple type information

Content

  • Type based on xsd:string
    • Pattern: (19[0-9][0-9]|20[0-9][0-9]|21[0-9][0-9])(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])(T(([0-1][0-9]|2[0-3])([0-5][0-9][0-5][0-9])|240000)(Z|[+\-](0[0-9]|1[0-1])([0-5][0-9]|1200))?)?
  • Used by

    Type inheritance chain

    Site developed and hosted by Datypic, Inc.

    Please report errors or comments about this site to contrib@functx.com