net.liftweb.util.TimeHelpers.TimeSpan

class TimeSpan

class TimeSpan(private dt : Either[DateTime, Duration])

 extends ConvertableToDate with ScalaObject


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)


Source: TimeHelpers.scala(83)

 Constructors

def this(ms : Long)
[details]
return
- a Date as the amount of time represented by the TimeSpan after the Epoch date
def this(dt : Either[DateTime, Duration])

 Fields

ago.. def ago
[details]
return
- a Date as the amount of time represented by the TimeSpan before now
TimeSpan
date.. def date Date
later.. def later
[details]
return
- a Date as the amount of time represented by the TimeSpan after now
TimeSpan
millis.. def millis Long
noTime.. def noTime Date
toDate.. def toDate
Convert to a Date
Date
toDateTime.. def toDateTime
Convert to a JodaTime DateTime
DateTime
toMillis.. def toMillis Long

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
+.. def +[B](in : B)(implicit f : (B) => TimeSpan)
[details]
return
- a TimeSpan representing the addition of 2 TimeSpans
TimeSpan
-.. def -[B](in : B)(implicit f : (B) => TimeSpan)
[details]
return
- a TimeSpan representing the substraction of 2 TimeSpans
TimeSpan
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. override def equals(cmp : Any)
override the equals method so that TimeSpans can be compared to long, int and TimeSpan
Boolean
finalize.. protected def finalize Unit AnyRef
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
plus.. def plus[B](in : B)(implicit f : (B) => TimeSpan)
[details]
return
- a TimeSpan representing the addition of 2 TimeSpans
TimeSpan
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. override def toString
override the toString method to display a readable amount of time
String
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.