org.jclouds.date.internal
Class SimpleDateFormatDateService
java.lang.Object
org.jclouds.date.internal.SimpleDateFormatDateService
- All Implemented Interfaces:
- DateService
public class SimpleDateFormatDateService
- extends Object
- implements DateService
uses SimpleDateFormat internally.
- Author:
- Adrian Cole, James Murty
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleDateFormatDateService
public SimpleDateFormatDateService()
cDateFormat
public final String cDateFormat(Date date)
- Specified by:
cDateFormat in interface DateService
cDateFormat
public final String cDateFormat()
- Specified by:
cDateFormat in interface DateService
cDateParse
public final Date cDateParse(String toParse)
- Specified by:
cDateParse in interface DateService
- Parameters:
toParse - text to parse
- Returns:
- parsed date
rfc822DateFormat
public final String rfc822DateFormat(Date date)
- Specified by:
rfc822DateFormat in interface DateService
rfc822DateFormat
public final String rfc822DateFormat()
- Specified by:
rfc822DateFormat in interface DateService
rfc822DateParse
public final Date rfc822DateParse(String toParse)
- Specified by:
rfc822DateParse in interface DateService
- Parameters:
toParse - text to parse
- Returns:
- parsed date
iso8601SecondsDateFormat
public final String iso8601SecondsDateFormat()
- Specified by:
iso8601SecondsDateFormat in interface DateService
iso8601DateFormat
public final String iso8601DateFormat(Date date)
- Specified by:
iso8601DateFormat in interface DateService
iso8601DateFormat
public final String iso8601DateFormat()
- Specified by:
iso8601DateFormat in interface DateService
iso8601DateParse
public final Date iso8601DateParse(String toParse)
- Specified by:
iso8601DateParse in interface DateService
- Parameters:
toParse - text to parse
- Returns:
- parsed date
iso8601SecondsDateParse
public final Date iso8601SecondsDateParse(String toParse)
- Specified by:
iso8601SecondsDateParse in interface DateService
- Parameters:
toParse - text to parse
- Returns:
- parsed date
iso8601SecondsDateFormat
public String iso8601SecondsDateFormat(Date date)
- Specified by:
iso8601SecondsDateFormat in interface DateService
rfc1123DateFormat
public final String rfc1123DateFormat(Date date)
- Specified by:
rfc1123DateFormat in interface DateService
rfc1123DateFormat
public final String rfc1123DateFormat()
- Specified by:
rfc1123DateFormat in interface DateService
rfc1123DateParse
public final Date rfc1123DateParse(String toParse)
throws IllegalArgumentException
- Specified by:
rfc1123DateParse in interface DateService
- Parameters:
toParse - text to parse
- Returns:
- parsed date
- Throws:
IllegalArgumentException - if the input is invalid
Copyright © 2009-2013 jclouds. All Rights Reserved.