[DFDL-WG] clarification needed: datetime and time

Steve Lawrence slawrence at tresys.com
Tue Jan 29 09:11:04 EST 2013


I'll add that ZZZZZ in ICU4J accepts all types of timezone formats (RFC 
822, GMT Offset, and ISO 8601). So it will also accept formats with both 
Z and ZZZZ timezone patterns. It outputs as ISO 8601, though.

- Steve

On 01/29/2013 09:04 AM, Steve Hanson wrote:
> Hi Mike,
>
> The phrase " derived from the XML schema date/time type" just means that
> the pattern varies depends on whether the xsd type is date, dateTime or
> time, it does not mean that it is set up for parsing a date, dateTime or
> time value that conforms to the lexical space for the xsd type. The
> pattern values were chosen to be the typical patterns seen in the non-XML
> world.
>
> We can debate whether ZZZ is obsolescent and needs to be updated. IBM DFDL
> has shipped with ZZZ as far as I am aware.
>
> Regards
>
> Steve Hanson
> Architect, Data Format Description Language (DFDL)
> Co-Chair, OGF DFDL Working Group
> IBM SWG, Hursley, UK
> smh at uk.ibm.com
> tel:+44-1962-815848
>
>
>
> From:   Mike Beckerle<mbeckerle.dfdl at gmail.com>
> To:     dfdl-wg at ogf.org,
> Date:   29/01/2013 13:55
> Subject:        [DFDL-WG] clarification needed: datetime and time
> Sent by:        dfdl-wg-bounces at ogf.org
>
>
>
> In the below. Should xs:datetime have trailing timezone as well? Right now
> it has no tz component.
>
> Seems to me it should to match iso 8601 format which is what XSD uses.
>
> Also, I believe we now think ZZZ is not the right behavior, and seems to
> be deprecated in ICU. The right thing is ZZZZZ.
>
> calendarPatternKind
> Enum
> Valid values ‘explicit’, ‘implicit’
> ‘explicit’ means the pattern is given by dfdl:calendarPattern,
> ‘implicit’ means the pattern is derived from the XML schema date/time
> type.
>
>
> Logical Type
> Default Pattern
> xs:date
> yyyy-MM-dd
> xs:dateTime
> yyyy-MM-dd'T'HH:mm:ss
> xs:time
> HH:mm:ssZZZ
> Annotation: dfdl:element, dfdl:simpleType
>
>
>
>
>
> --
>    dfdl-wg mailing list
>    dfdl-wg at ogf.org
>    https://www.ogf.org/mailman/listinfo/dfdl-wg



More information about the dfdl-wg mailing list