object DateTime extends Serializable
- Source
- DateTime.scala
- Alphabetic
- By Inheritance
- DateTime
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- 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). -
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). -
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.
-
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). -
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.