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. final def !=(arg0: AnyRef): Boolean

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

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

    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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  8. def ago: TimeSpan

    returns

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

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

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

  12. final def eq(arg0: AnyRef): Boolean

    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. final def getClass(): java.lang.Class[_]

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

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

    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. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. def noTime: Date

  22. final def notify(): Unit

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

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

    returns

    a TimeSpan representing the addition of 2 TimeSpans

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

    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. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ConvertableToDate

Inherited from AnyRef

Inherited from Any