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: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def +[B](in: B)(implicit f: (B) ⇒ (TimeHelpers.this)#TimeSpan): (TimeHelpers.this)#TimeSpan

    returns

    a TimeSpan representing the addition of 2 TimeSpans

  4. def -[B](in: B)(implicit f: (B) ⇒ (TimeHelpers.this)#TimeSpan): (TimeHelpers.this)#TimeSpan

    returns

    a TimeSpan representing the substraction of 2 TimeSpans

  5. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  6. def ago: (TimeHelpers.this)#TimeSpan

    returns

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

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

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

    Definition Classes
    AnyRef
  11. 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
  12. def finalize(): Unit

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

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

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

    Definition Classes
    Any
  16. def later: (TimeHelpers.this)#TimeSpan

    returns

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

  17. def millis: Long

    Definition Classes
    TimeSpan → ConvertableToDate
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def noTime: Date

  20. final def notify(): Unit

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

    Definition Classes
    AnyRef
  22. def plus[B](in: B)(implicit f: (B) ⇒ (TimeHelpers.this)#TimeSpan): (TimeHelpers.this)#TimeSpan

    returns

    a TimeSpan representing the addition of 2 TimeSpans

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

    Definition Classes
    AnyRef
  24. def toDate: Date

    Convert to a Date

    Convert to a Date

    Definition Classes
    TimeSpan → ConvertableToDate
  25. def toDateTime: DateTime

    Convert to a JodaTime DateTime

    Convert to a JodaTime DateTime

    Definition Classes
    TimeSpan → ConvertableToDate
  26. def toMillis: Long

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ConvertableToDate

Inherited from AnyRef

Inherited from Any

Ungrouped