org.hippoecm.hst.util
Class ForkedISO8601

java.lang.Object
  extended by org.hippoecm.hst.util.ForkedISO8601

Deprecated.

@Deprecated
public final class ForkedISO8601
extends Object


Constructor Summary
ForkedISO8601()
          Deprecated.  
 
Method Summary
static String format(Calendar cal)
          Deprecated. Formats a Calendar value into an ISO8601-compliant date/time string.
static int getYear(Calendar cal)
          Deprecated. Returns the astronomical year of the given calendar.
static Calendar parse(String text)
          Deprecated. Parses an ISO8601-compliant date/time string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForkedISO8601

public ForkedISO8601()
Deprecated. 
Method Detail

parse

public static Calendar parse(String text)
Deprecated. 
Parses an ISO8601-compliant date/time string.

Parameters:
text - the date/time string to be parsed
Returns:
a Calendar, or null if the input could not be parsed
Throws:
IllegalArgumentException - if a null argument is passed

format

public static String format(Calendar cal)
                     throws IllegalArgumentException
Deprecated. 
Formats a Calendar value into an ISO8601-compliant date/time string.

Parameters:
cal - the time value to be formatted into a date/time string.
Returns:
the formatted date/time string.
Throws:
IllegalArgumentException - if a null argument is passed or the calendar cannot be represented as defined by ISO 8601 (i.e. year with more than four digits).

getYear

public static int getYear(Calendar cal)
                   throws IllegalArgumentException
Deprecated. 
Returns the astronomical year of the given calendar.

Parameters:
cal - a calendar instance.
Returns:
the astronomical year.
Throws:
IllegalArgumentException - if calendar cannot be represented as defined by ISO 8601 (i.e. year with more than four digits).


Copyright © 2008-2012 Hippo. All Rights Reserved.