Package twitter4j
Class TimeSpanConverter
java.lang.Object
twitter4j.TimeSpanConverter
- All Implemented Interfaces:
Serializable
- Since:
- Twitter4J 2.1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs an instance with default localeTimeSpanConverter
(Locale locale) Constructs an instance with the specified locale -
Method Summary
-
Constructor Details
-
TimeSpanConverter
public TimeSpanConverter()Constructs an instance with default locale -
TimeSpanConverter
Constructs an instance with the specified locale- Parameters:
locale
- locale
-
-
Method Details
-
toTimeSpanString
- Parameters:
date
- date- Returns:
- time span string
-
toTimeSpanString
- Parameters:
milliseconds
- time to span in milliseconds- Returns:
- relative time
-