Object/Class

net.liftweb.util.TimeHelpers

TimeSpan

Related Docs: class TimeSpan | package TimeHelpers

Permalink

object TimeSpan

The TimeSpan object provides 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. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(in: Long): (TimeHelpers.this)#TimeSpan

    Permalink

    explicit constructor for a TimeSpan

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. implicit def durationToTS(in: Duration): (TimeHelpers.this)#TimeSpan

    Permalink

    Convert a Duration to a TimeSpan

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

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def format(millis: Long): String

    Permalink

    Formats a number of millis to a string representing the number of weeks, days, hours, minutes, seconds, millis

  12. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. val scales: List[(Long, String)]

    Permalink

    time units and values used when converting a total number of millis to those units (see the format function)

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

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. implicit def dateTimeToTS(in: DateTime): (TimeHelpers.this)#TimeSpan

    Permalink

    Convert a DateTime to a TimeSpan

    Convert a DateTime to a TimeSpan

    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0) Implicit conversion from DateTime to TimeSpan will be removed due to its unclear behavior; use new TimeSpan(dateTime.getMillis) instead.

  2. implicit def dateToTS(in: Date): (TimeHelpers.this)#TimeSpan

    Permalink

    Convert a Date to a TimeSpan

    Convert a Date to a TimeSpan

    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0) Date to TimeSpan conversion will be removed for possibility of mistakes in on-duration operations

  3. implicit def periodToTS(in: Period): (TimeHelpers.this)#TimeSpan

    Permalink

    Convert a Period to a TimeSpan

    Convert a Period to a TimeSpan

    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0) Implicit conversion from Period to TimeSpan will be removed due to its unclear behavior; use new Period(timeSpan.millis) instead.

  4. implicit def tsToPeriod[TS](in: TS)(implicit arg0: (TS) ⇒ (TimeHelpers.this)#TimeSpan): Period

    Permalink

    Convert a TimeSpan to a Period

    Convert a TimeSpan to a Period

    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0) Implicit conversion from TimeSpan to Period will be removed due to its unclear behavior; use new TimeSpan(period.toDurationFrom(startDateTime)) instead.

Inherited from AnyRef

Inherited from Any

Ungrouped