JavaScript is disabled on your browser.
Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC) 12c (12.2.1.1) E68346-01
public final class ISO8601
extends Object
For parsing dates in ISO-8601 Format. Modified from WebCenter code at
http://webcenter.us.oracle.com/WorkplaceLabelServer/LATEST/wpfas/modules/doclib-service/jcr-common-runtime/src/java/oracle/vcr/share/ISO8601.java
Constructor Summary
Constructors
Constructor and Description
ISO8601 ()
Method Summary
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Method Detail
parseISO8601
public static Calendar parseISO8601(String str)
throws ParseException
Parse str into a date, assuming ISO8601 representation
Parameters:
str
- the date in ISO8601 string format
Returns:
The Calendar value of the parsed date
Throws:
ParseException
- if the string format is not valid
parseISO8601
public static Calendar parseISO8601(String str,
TimeZone tz)
throws ParseException
Parse str into a date, assuming ISO8601 representation
Parameters:
str
- the date in ISO8601 string format
tz
- the timezone to use if not specified in string
Returns:
The Calendar value of the parsed date
Throws:
ParseException
- if the string format is not valid
Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC) 12c (12.2.1.1) E68346-01
Copyright © 2008, 2016, Oracle and/or its affiliates. All rights reserved.