Packages

  • package root
    Definition Classes
    root
  • package net
    Definition Classes
    root
  • package liftweb
    Definition Classes
    net
  • package util

    The util package object

    The util package object

    Definition Classes
    liftweb
  • trait TimeHelpers extends AnyRef

    The TimeHelpers trait provide functions to create TimeSpans (an object representing duration in milliseconds), to manage date formats or general utility functions (get the date for today, get year/month/day number,...)

    The TimeHelpers trait provide functions to create TimeSpans (an object representing duration in milliseconds), to manage date formats or general utility functions (get the date for today, get year/month/day number,...)

    Definition Classes
    util
  • CalendarExtension
  • DateExtension
  • DateTimeExtension
  • PeriodExtension
  • TimeSpan
  • TimeSpanBuilder

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. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(in: Long): (TimeHelpers.this)#TimeSpan

    explicit constructor for a TimeSpan

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. implicit def durationToTS(in: Duration): (TimeHelpers.this)#TimeSpan

    Convert a Duration to a TimeSpan

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def format(millis: Long): String

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

  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. val scales: List[(Long, String)]

    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
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

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

    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

    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

    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

    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