org.fest.util
Class Dates

java.lang.Object
  extended by org.fest.util.Dates

public class Dates
extends Object

Author:
Tomasz Nurkiewicz, Joel Costigliola

Constructor Summary
Dates()
           
 
Method Summary
static String format(Calendar calendar)
          Formats the date of the given calendar using the ISO 8601 date-time format.
static String format(Date date)
          Formats the given date using the ISO 8601 date-time format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dates

public Dates()
Method Detail

format

public static String format(Date date)
Formats the given date using the ISO 8601 date-time format.

Parameters:
date - the date to format.
Returns:
the formatted date.

format

public static String format(Calendar calendar)
Formats the date of the given calendar using the ISO 8601 date-time format.

Parameters:
calendar - the calendar to format.
Returns:
the formatted calendar.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.