object DateTime extends Serializable
- Source
- DateTime.scala
- Alphabetic
- By Inheritance
- DateTime
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val MaxValue: DateTime
- val MinValue: DateTime
- def apply(clicks: Long): DateTime
Creates a new
DateTime
from the number of milli seconds since the start of "the epoch", namely January 1, 1970, 00:00:00 GMT.Creates a new
DateTime
from the number of milli seconds since the start of "the epoch", namely January 1, 1970, 00:00:00 GMT. Note that this implementation discards milliseconds (i.e. rounds down to full seconds). - def apply(year: Int, month: Int, day: Int, hour: Int = 0, minute: Int = 0, second: Int = 0): DateTime
Creates a new
DateTime
with the given properties.Creates a new
DateTime
with the given properties. Note that this implementation discards milliseconds (i.e. rounds down to full seconds). - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromIsoDateTimeString(string: String): Option[DateTime]
Creates a new DateTime instance from the given String, if it adheres to the format
yyyy-mm-ddThh:mm:ss[.SSSZ]
.Creates a new DateTime instance from the given String, if it adheres to the format
yyyy-mm-ddThh:mm:ss[.SSSZ]
. Note that this implementation discards milliseconds (i.e. rounds down to full seconds). - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def month(index: Int): String
Returns the three-letter string for the month with the given index.
Returns the three-letter string for the month with the given index. January is zero.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def now: DateTime
Creates a new
DateTime
instance for the current point in time.Creates a new
DateTime
instance for the current point in time. Note that this implementation discards milliseconds (i.e. rounds down to full seconds). - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def weekday(index: Int): String
Returns the three-letter string for the weekday with the given index.
Returns the three-letter string for the weekday with the given index. Sunday is zero.