public class DateTime$
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static DateTime$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
DateTime$() |
Modifier and Type | Method and Description |
---|---|
DateTime |
apply(int year,
int month,
int day,
int hour,
int minute,
int second)
Creates a new
DateTime with the given properties. |
DateTime |
apply(long clicks)
Creates a new
DateTime from the number of milli seconds
since the start of "the epoch", namely January 1, 1970, 00:00:00 GMT. |
scala.Option<DateTime> |
fromIsoDateTimeString(java.lang.String string)
Creates a new DateTime instance from the given String,
if it adheres to the format
yyyy-mm-ddThh:mm:ss[.SSSZ] . |
DateTime |
MaxValue() |
DateTime |
MinValue() |
java.lang.String |
month(int index)
Returns the three-letter string for the month with the given index.
|
DateTime |
now()
Creates a new
DateTime instance for the current point in time. |
java.lang.String |
weekday(int index)
Returns the three-letter string for the weekday with the given index.
|
public static final DateTime$ MODULE$
public java.lang.String weekday(int index)
index
- (undocumented)public java.lang.String month(int index)
index
- (undocumented)public DateTime MinValue()
public DateTime MaxValue()
public DateTime apply(int year, int month, int day, int hour, int minute, int second)
DateTime
with the given properties.
Note that this implementation discards milliseconds (i.e. rounds down to full seconds).year
- (undocumented)month
- (undocumented)day
- (undocumented)hour
- (undocumented)minute
- (undocumented)second
- (undocumented)public DateTime apply(long clicks)
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).clicks
- (undocumented)public DateTime now()
DateTime
instance for the current point in time.
Note that this implementation discards milliseconds (i.e. rounds down to full seconds).public scala.Option<DateTime> fromIsoDateTimeString(java.lang.String string)
yyyy-mm-ddThh:mm:ss[.SSSZ]
.
Note that this implementation discards milliseconds (i.e. rounds down to full seconds).string
- (undocumented)