W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2001

Re: About timeDuration format

From: Ashok Malhotra <petsa@us.ibm.com>
Date: Fri, 9 Feb 2001 07:54:21 -0500
To: Jing Wu <jing@research.canon.com.au>
Cc: xmlschema-dev@w3.org
Message-ID: <OF98B057A6.6CD76672-ON852569EE.0046CA7E@pok.ibm.com>

No, the alternate formats you suggest are not supported.
These formats are similar to proposed SQL formats that define
a period of time with a start instant and an end instant, a start
and a duration, etc.  If you have a need to represent such data
you should create a complex type that contains children with
the two values.

All the best, Ashok


Jing Wu <jing@research.canon.com.au>@w3.org on 02/08/2001 06:50:02 PM

Sent by:  xmlschema-dev-request@w3.org


To:   xmlschema-dev@w3.org
cc:
Subject:  About timeDuration format



Hi,

According to XML Schema Part 2 3.2.6, timeDuration's format is
PnYnMnDTnHnMnS.
This is the basic format of time duration. Does timeDuration allow other
alternative formats,
such as
    CCYYMMDDThhmmss/CCYYMMDDThhmmss
    CCYYMMDDThhmmss/PnYnMnDTnHnMnS
    PnYnMnDTnHnMnS/CCYYMMDDThhmmss
    CCYY-MM-DDThh:mm:ss/CCYY-MM-DDThh:mm:ss
    CCYY-MM-DDThh:mm:ss/PnYnMnDTnHnMnS
    PnYnMnDTnHnMnS/CCYY-MM-DDThh:mm:ss

Thanks in advance!
Jing
Received on Friday, 9 February 2001 07:54:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:50 UTC