private String extractTime(String cqlDateTime) {
// splits dateTime to get the Time and time zone in the second array element
String strUpper = cqlDateTime.toUpperCase();
String[] dateTime = strUpper.split("T");
assert dateTime.length >= 2 : "date and time is required by the sintax
rule";
// splits the time and time zone
String[] time = dateTime[1].split("[+|-|Z]");
return time[0]; // the time
} Doesn't work because the regex is wrong; it should be "[-+Z]".Thanks, -- Dustin Parker - Forward Slope, Inc. Cell: 619 277 2591 VGhlIDFzdCBydWxlIG9mIG9wdGltaXphdGlvbiBpcyAi ZG9uJ3Qgb3B0aW1pemUuIiBUaGUgMm5kIHJ1bGUgb2Yg b3B0aW1pemF0aW9uIGlzICJvcHRpbWl6ZSBsYXRlci4i
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ GeoTools-Devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
