I have some doubts about if it's acceptable or not, because the Java SDO specs defines the following format: " yyyy-MM-dd'T'HH:mm:ss'.'SSS'Z' " . But when I look at the testcases, it test many date strings that are not exactly in this format:
// Ensure that strings that should be recognized by toDate do not // result in a null Date value. public void testToDateFormats() throws Exception { String[] validStrings = { "2006-03-31T03:30:45.123Z", "-2006-03-31T03:30:45.1Z", "2006-03-31T03:30:45Z", "2006-03-31T03:30:45.123", "2006-03-31T03:30:45.1", "-2006-03-31T03:30:45", "2006-03-31T03:30:45.123 EDT", "2006-03-31T03:30:45.1 EDT", "2006-03-31T03:30:45 EDT", "---05 PST", "---04", "--12 GMT", "--12", "--08-08 EST", "--08-08", "1976-08-08 PDT", "1976-08-08", "88-12 CST", "1988-12", "2005 CDT", "1999", "P2006Y 08M 10D T 12H 24M 07S", "P2006Y 10D T 12H", "-P2006Y 08M 10D T 07S.2", "P08M 10D T 07H", "-P 04M 10DT12H 24S.88", "PT12H" }; for (int i = 0; i < validStrings.length; i++) { assertNotNull("DataHelper.toData() should not return null for '" + validStrings[i] + "'.", data_helper.toDate(validStrings[i])); } } Am I missing something? Thanks in advance, Adriano Crestani On Sat, Mar 29, 2008 at 5:55 PM, Adriano Crestani < [EMAIL PROTECTED]> wrote: > Hi, > > What is the time zone format used in datetime SDO string? Only the time > zone abbreviation, like for example: "PST", or it also accepts GTM, like for > example: "GMT -04:00"? > > Thanks in advance, > Adriano Crestani >