org.hudsonci.maven.model
Class DateTimeAdapter

java.lang.Object
  extended by org.hudsonci.maven.model.DateTimeAdapter

public class DateTimeAdapter
extends Object

Utility to serialize Date objects as ISO 8601 string format. Note: apparently a format with and without the hour:minute separator are valid ISO 8601 dates. Jackson only handles the version without the separator and as UTC whereas Calendar produces it with the separator and time zone. Jackson: 2011-02-03T19:25:53.656+0000 Calendar: 2011-02-03T14:25:38.649-05:00 Prefer the Jackson version to make the XML consistent with the JSON representation.

Since:
2.1.0
Author:
Jamie Whitehouse

Constructor Summary
DateTimeAdapter()
           
 
Method Summary
static Date parseDate(String dateString)
           
static String printDate(Date date)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTimeAdapter

public DateTimeAdapter()
Method Detail

parseDate

public static Date parseDate(String dateString)

printDate

public static String printDate(Date date)


Copyright © 2004-2011 Hudson. All Rights Reserved.