パッケージ twitter4j

クラス TimeSpanConverter

java.lang.Object
twitter4j.TimeSpanConverter
すべての実装されたインタフェース:
Serializable

public final class TimeSpanConverter extends Object implements Serializable
導入されたバージョン:
Twitter4J 2.1.0
関連項目:
  • コンストラクタの詳細

    • TimeSpanConverter

      public TimeSpanConverter()
      Constructs an instance with default locale
    • TimeSpanConverter

      public TimeSpanConverter(Locale locale)
      Constructs an instance with the specified locale
      パラメータ:
      locale - locale
  • メソッドの詳細

    • toTimeSpanString

      public String toTimeSpanString(LocalDateTime date)
      パラメータ:
      date - date
      戻り値:
      time span string
    • toTimeSpanString

      public String toTimeSpanString(long milliseconds)
      パラメータ:
      milliseconds - time to span in milliseconds
      戻り値:
      relative time