[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xsd:dateTime vs. RFC 3339



/ Julian Reschke <julian.reschke@xxxxxx> was heard to say:
| -> Neither xsd:dateTime nor RFC3339 are perfect for our needs, so we
| may have to profile one of them. In which case I'd prefer to stick
| with RFC3339.

Perhaps a compromise? Date Construct values MUST be valid xsd:dateTime
values and MUST also match the following regular expression:

  [0-9]{8}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]+)?(Z|[\+\-][0-9]{2}:[0-9]{2})

(Expressed for my own testing purposes in XML Schema pattern syntax.)

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@xxxxxxxxxx> | Some disguised deceits counterfeit
http://nwalsh.com/            | truth so perfectly that not to be taken
                              | in by them would be an error of
                              | judgment.--La Rochefoucauld

Attachment: pgp00199.pgp
Description: PGP signature