org.sonar.api.utils
Class DateUtils

java.lang.Object
  extended by org.sonar.api.utils.DateUtils

public final class DateUtils
extends Object

Parses and formats ISO 8601 dates. See http://en.wikipedia.org/wiki/ISO_8601. This class is thread-safe.

Since:
2.7

Field Summary
static String DATE_FORMAT
           
static String DATETIME_FORMAT
           
 
Method Summary
static String formatDate(Date d)
           
static String formatDateTime(Date d)
           
static Date parseDate(String s)
           
static Date parseDateTime(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_FORMAT

public static final String DATE_FORMAT
See Also:
Constant Field Values

DATETIME_FORMAT

public static final String DATETIME_FORMAT
See Also:
Constant Field Values
Method Detail

formatDate

public static String formatDate(Date d)

formatDateTime

public static String formatDateTime(Date d)

parseDate

public static Date parseDate(String s)

parseDateTime

public static Date parseDateTime(String s)


Copyright © 2009-2011 SonarSource. All Rights Reserved.