com.ning.http.client.date
Class CalendarTimeConverter

java.lang.Object
  extended by com.ning.http.client.date.CalendarTimeConverter
All Implemented Interfaces:
TimeConverter

public class CalendarTimeConverter
extends Object
implements TimeConverter

Calendar based TimeConverter. Note that a Joda-Time or DateTime based implementation would be more efficient, but AHC doesn't have a dependency to JodaTime.

Author:
slandelle

Field Summary
static TimeZone GMT
           
 
Constructor Summary
CalendarTimeConverter()
           
 
Method Summary
 long toTime(RFC2616Date dateElements)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GMT

public static final TimeZone GMT
Constructor Detail

CalendarTimeConverter

public CalendarTimeConverter()
Method Detail

toTime

public long toTime(RFC2616Date dateElements)
Specified by:
toTime in interface TimeConverter


Copyright © 2014. All Rights Reserved.