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
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TimeSpan
  2. ConvertableToDate
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
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) ⇒ (TimeHelpers.this)#TimeSpan): (TimeHelpers.this)#TimeSpan

    returns

    a TimeSpan representing the addition of 2 TimeSpans

  5. def -[B](in: B)(implicit f: (B) ⇒ (TimeHelpers.this)#TimeSpan): (TimeHelpers.this)#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: (TimeHelpers.this)#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[java.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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): 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: (TimeHelpers.this)#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) ⇒ (TimeHelpers.this)#TimeSpan): (TimeHelpers.this)#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

Ungrouped