org.jclouds.eucalyptus.internal
Class DateServiceIso8601SecondsCodec
java.lang.Object
org.jclouds.date.internal.DateServiceDateCodecFactory.DateServiceIso8601Codec
org.jclouds.eucalyptus.internal.DateServiceIso8601SecondsCodec
- All Implemented Interfaces:
- DateCodec
@Singleton
public class DateServiceIso8601SecondsCodec
- extends DateServiceDateCodecFactory.DateServiceIso8601Codec
DateServiceIso8601SecondsCodec
@Inject
public DateServiceIso8601SecondsCodec(DateService dateService)
toDate
public Date toDate(String date)
throws IllegalArgumentException
- Specified by:
toDate in interface DateCodec- Overrides:
toDate in class DateServiceDateCodecFactory.DateServiceIso8601Codec
- Returns:
- parsed date
- Throws:
IllegalArgumentException - if the input is invalid
toString
public String toString()
- Overrides:
toString in class DateServiceDateCodecFactory.DateServiceIso8601Codec
Copyright © 2009-2012 jclouds. All Rights Reserved.