twitter4j.util
Class TimeSpanConverter

java.lang.Object
  extended by twitter4j.util.TimeSpanConverter
All Implemented Interfaces:
java.io.Serializable

public final class TimeSpanConverter
extends java.lang.Object
implements java.io.Serializable

Since:
Twitter4J 2.1.0
Author:
Joern Huxhorn - jhuxhorn at googlemail.com, Yusuke Yamamoto - yusuke at mac.com
See Also:
Serialized Form

Constructor Summary
TimeSpanConverter()
          Constructs an instance with default locale
TimeSpanConverter(java.util.Locale locale)
          Constructs an instance with the specified locale
 
Method Summary
 java.lang.String toTimeSpanString(java.util.Date date)
           
 java.lang.String toTimeSpanString(long milliseconds)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSpanConverter

public TimeSpanConverter()
Constructs an instance with default locale


TimeSpanConverter

public TimeSpanConverter(java.util.Locale locale)
Constructs an instance with the specified locale

Parameters:
locale - locale
Method Detail

toTimeSpanString

public java.lang.String toTimeSpanString(java.util.Date date)

toTimeSpanString

public java.lang.String toTimeSpanString(long milliseconds)


Copyright © 2011. All Rights Reserved.