2708N/A * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 2708N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2708N/A * This code is free software; you can redistribute it and/or modify it 2708N/A * under the terms of the GNU General Public License version 2 only, as 2708N/A * published by the Free Software Foundation. 2708N/A * This code is distributed in the hope that it will be useful, but WITHOUT 2708N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2708N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2708N/A * version 2 for more details (a copy is included in the LICENSE file that 2708N/A * You should have received a copy of the GNU General Public License version 2708N/A * 2 along with this work; if not, write to the Free Software Foundation, 2708N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2708N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2708N/A * or visit www.oracle.com if you need additional information or have any 2708N/A * @summary Unit test for ISO8601 time zone format support 2708N/A // time zone name, expected output at TIMESTAMP 2708N/A {
"GMT-07:00",
"2010-09-06T00:27:19.020-07", },
2708N/A {
"GMT-07:00",
"2010-09-06T00:27:19.020-0700", },
2708N/A {
"GMT-07:00",
"2010-09-06T00:27:19.020-07:00", },
2708N/A {
"UTC",
"2010-09-06T07:27:19.020Z", },
2708N/A {
"UTC",
"2010-09-06T07:27:19.020Z", },
2708N/A {
"UTC",
"2010-09-06T07:27:19.020Z", },
2708N/A "UTC",
"GMT+05:30",
"GMT-01:23",
2708N/A "yyyy-MM-dd'T'HH:mm:ss.SSSX",
2708N/A "yyyy-MM-dd'T'HH:mm:ss.SSSXX",
2708N/A "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
3299N/A // badData[][1] - (bad) text to be parsed 3299N/A // badData[][2] - subtext at the end of which a parse error is detected 3299N/A {
"XXX",
"+12:60",
"+12:6" },
3299N/A {
"XXX",
"+12:3",
"+12:3" },