| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
trait TimeHelpers
extends
ScalaObject
| TimeSpan.. |
object TimeSpan
The TimeSpan object provides class represents an amount of time
[details]
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)
|
|
|
| currentYear.. |
def currentYear
[details]
|
Int | |
| dateFormatter.. |
def dateFormatter
[details]
|
SimpleDateFormat | |
| dayNow.. |
def dayNow
[details]
|
Date | |
| daysSinceEpoch.. |
def daysSinceEpoch
[details]
|
Long | |
| formattedDateNow.. |
def formattedDateNow
[details]
|
String | |
| formattedTimeNow.. |
def formattedTimeNow
[details]
|
String | |
| hourFormat.. |
val hourFormat
[details]
|
SimpleDateFormat | |
| internetDateFormatter.. |
def internetDateFormatter
[details]
|
SimpleDateFormat | |
| millis.. |
def millis
[details]
|
Long | |
| now.. |
def now
[details]
|
Date | |
| nowAsInternetDate.. |
def nowAsInternetDate
[details]
|
String | |
| timeFormatter.. |
def timeFormatter
[details]
|
SimpleDateFormat | |
| timeNow.. |
def timeNow
[details]
|
Date | |
| today.. |
def today
[details]
|
Calendar | |
| utc.. |
val utc
The UTC TimeZone
|
TimeZone |
| !=.. |
final def !=(arg0 : Any)
|
Boolean | Any |
| !=.. |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| ==.. |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| ==.. |
final def ==(arg0 : Any)
|
Boolean | Any |
| asInstanceOf.. |
final def asInstanceOf[T0]
|
T0 | Any |
| boxParseInternetDate.. |
def boxParseInternetDate(dateString : String)
[details]
|
Box[Date] | |
| calcTime.. |
def calcTime[T](f : => T)
[details]
|
(Long, T) | |
| clone.. |
protected def clone
|
Object | AnyRef |
| day.. |
def day(in : Date)
[details]
|
Int | |
| days.. |
def days(in : Long)
[details]
|
Long | |
| eq.. |
final def eq(arg0 : Object)
|
Boolean | AnyRef |
| equals.. |
def equals(arg0 : Any)
|
Boolean | AnyRef |
| finalize.. |
protected def finalize
|
Unit | AnyRef |
| getClass.. |
final def getClass
|
Class[Any] | AnyRef |
| hashCode.. |
def hashCode
|
Int | AnyRef |
| hourFormat.. |
def hourFormat(in : Date)
[details]
|
String | |
| hours.. |
def hours(in : Long)
[details]
|
Long | |
| intToTimeSpan.. |
implicit def intToTimeSpan(in : Int)
transforms an int to a TimeSpan object
[details]
Usage: 3000 returns a TimeSpan of 3000L millis
|
TimeSpan | |
| intToTimeSpanBuilder.. |
implicit def intToTimeSpanBuilder(in : Int)
transforms an int to a TimeSpanBuilder object
[details]
Usage: 3.seconds returns a TimeSpan of 3000L millis
|
TimeSpanBuilder | |
| isInstanceOf.. |
final def isInstanceOf[T0]
|
Boolean | Any |
| logTime.. |
def logTime[T](msg : String)(f : => T)
Log a message with the time taken in millis to do something and retrun the result
[details]
|
T | |
| longToTimeSpan.. |
implicit def longToTimeSpan(in : Long)
transforms a long to a TimeSpan object
[details]
Usage: 3000L returns a TimeSpan of 3000L millis
|
TimeSpan | |
| longToTimeSpanBuilder.. |
implicit def longToTimeSpanBuilder(in : Long)
transforms a long to a TimeSpanBuilder object
[details]
Usage: 3L.seconds returns a TimeSpan of 3000L millis
|
TimeSpanBuilder | |
| millisToDays.. |
def millisToDays(millis : Long)
[details]
|
Long | |
| minutes.. |
def minutes(in : Long)
[details]
|
Long | |
| month.. |
def month(in : Date)
[details]
|
Int | |
| ne.. |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| notify.. |
final def notify
|
Unit | AnyRef |
| notifyAll.. |
final def notifyAll
|
Unit | AnyRef |
| parseInternetDate.. |
def parseInternetDate(dateString : String)
[details]
|
Date | |
| seconds.. |
def seconds(in : Long)
[details]
|
Long | |
| synchronized.. |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| time.. |
def time(when : Long)
alias for new Date(millis)
|
Date | |
| toCalendarExtension.. |
implicit def toCalendarExtension(c : Calendar)
implicit def used to add the setXXX methods to the Calendar class
|
CalendarExtension | |
| toDate.. |
def toDate(in : Any)
[details]
|
Box[Date] | |
| toDateExtension.. |
implicit def toDateExtension(d : Date)
implicit def used to add the noTime method to the Date class
|
DateExtension | |
| toInternetDate.. |
def toInternetDate(in : Date)
[details]
|
String | |
| toInternetDate.. |
def toInternetDate(in : Long)
[details]
|
String | |
| toString.. |
def toString
|
String | AnyRef |
| wait.. |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| wait.. |
final def wait
|
Unit | AnyRef |
| wait.. |
final def wait(arg0 : Long, arg1 : Int)
|
Unit | AnyRef |
| weeks.. |
def weeks(in : Long)
[details]
|
Long | |
| year.. |
def year(in : Date)
[details]
|
Int |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |