tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [OT] Parsing xs:dateTime values
Date Thu, 15 May 2008 16:35:27 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert,

Robert Koberg wrote:
| You don't need regexp. Do you mean something like:
|
|   private static final String ISO8601_DATEFORMAT =
| "yyyy-MM-dd'T'HH:mm:ss";

This does not account for the milliseconds and timezone. The TX format
for xs:dateTime does not match anything that SimpleDateFormat will read,
and the fact that the ".SSS" (in simpleDateFormat-speak) is completely
optional also fouls things up.

:(

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgsZk8ACgkQ9CaO5/Lv0PBOHwCgnBGARxu4fVS5LGP9c4JAMjYk
rEAAnR0VbwIADqE5LQ68jyco8EBzggq8
=OOkX
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message