net.liftweb.util.TimeHelpers

TimeSpan

class TimeSpan extends ConvertableToDate

The TimeSpan class represents an amount of time. It can be translated to a date with the date method. In that case, the number of millis seconds will be used to create a Date object starting from the Epoch time (see the documentation for java.util.Date)

Linear Supertypes
ConvertableToDate, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. TimeSpan
  2. ConvertableToDate
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TimeSpan (ms: Long)

    returns

    a Date as the amount of time represented by the TimeSpan after the Epoch date

  2. new TimeSpan (dt: Either[DateTime, Period])

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def + [B] (in: B)(implicit f: (B) ⇒ TimeSpan): TimeSpan

    returns

    a TimeSpan representing the addition of 2 TimeSpans

  5. def - [B] (in: B)(implicit f: (B) ⇒ TimeSpan): TimeSpan

    returns

    a TimeSpan representing the substraction of 2 TimeSpans

  6. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  7. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  8. def ago : TimeSpan

    returns

    a Date as the amount of time represented by the TimeSpan before now

  9. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  10. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def date : Date

  12. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  13. def equals (cmp: Any): Boolean

    override the equals method so that TimeSpans can be compared to long, int and TimeSpan

    override the equals method so that TimeSpans can be compared to long, int and TimeSpan

    Definition Classes
    TimeSpan → AnyRef → Any
  14. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  16. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  17. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  18. def later : TimeSpan

    returns

    a Date as the amount of time represented by the TimeSpan after now

  19. def millis : Long

    Definition Classes
    TimeSpanConvertableToDate
  20. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  21. def noTime : Date

  22. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  23. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  24. def plus [B] (in: B)(implicit f: (B) ⇒ TimeSpan): TimeSpan

    returns

    a TimeSpan representing the addition of 2 TimeSpans

  25. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  26. def toDate : Date

    Convert to a Date

    Convert to a Date

    Definition Classes
    TimeSpanConvertableToDate
  27. def toDateTime : DateTime

    Convert to a JodaTime DateTime

    Convert to a JodaTime DateTime

    Definition Classes
    TimeSpanConvertableToDate
  28. def toMillis : Long

  29. def toString (): String

    override the toString method to display a readable amount of time

    override the toString method to display a readable amount of time

    Definition Classes
    TimeSpan → AnyRef → Any
  30. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  31. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ConvertableToDate

Inherited from AnyRef

Inherited from Any