XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] DateTime and no TimeZones

On 10/05/2011 19:34, Toby Considine wrote:
01d201cc0f40$e2f3e4e0$a8dbaea0$@gmail.com" type="cite">

I need to exchange datetimes without timezone information. Actually, I need to forbid it within the DateTime format.

 

The reason is, I am exchanging information with RFC5545-compliant systems which have a fundamentally different understanding of TimeZones than does the XSD specification. At the end, I need to send <datetime><timezone> as two parameters. My choices appear to have a string type with my own pattern, or use xs:datetime, and constraint it so expression of timezone (including Z for UTC) is prohibited….

 

Any comments or suggestions?

 



XSD 1.1 has a facet to say whether timezones are optional, mandatory, or disallowed, but in XSD 1.0 you can do it using a regex.

Michael Kay
Saxonica


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS