Package akka.http.scaladsl.model
Class DateTime$
- java.lang.Object
-
- akka.http.scaladsl.model.DateTime$
-
- All Implemented Interfaces:
java.io.Serializable
public class DateTime$ extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DateTime$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateTime
apply(int year, int month, int day, int hour, int minute, int second)
Creates a newDateTime
with the given properties.DateTime
apply(long clicks)
Creates a newDateTime
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 formatyyyy-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 newDateTime
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.
-
-
-
Field Detail
-
MODULE$
public static final DateTime$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
weekday
public java.lang.String weekday(int index)
Returns the three-letter string for the weekday with the given index. Sunday is zero.- Parameters:
index
- (undocumented)- Returns:
- (undocumented)
-
month
public java.lang.String month(int index)
Returns the three-letter string for the month with the given index. January is zero.- Parameters:
index
- (undocumented)- Returns:
- (undocumented)
-
MinValue
public DateTime MinValue()
-
MaxValue
public DateTime MaxValue()
-
apply
public DateTime apply(int year, int month, int day, int hour, int minute, int second)
Creates a newDateTime
with the given properties. Note that this implementation discards milliseconds (i.e. rounds down to full seconds).- Parameters:
year
- (undocumented)month
- (undocumented)day
- (undocumented)hour
- (undocumented)minute
- (undocumented)second
- (undocumented)- Returns:
- (undocumented)
-
apply
public DateTime apply(long clicks)
Creates a newDateTime
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).- Parameters:
clicks
- (undocumented)- Returns:
- (undocumented)
-
now
public DateTime now()
Creates a newDateTime
instance for the current point in time. Note that this implementation discards milliseconds (i.e. rounds down to full seconds).- Returns:
- (undocumented)
-
fromIsoDateTimeString
public scala.Option<DateTime> fromIsoDateTimeString(java.lang.String string)
Creates a new DateTime instance from the given String, if it adheres to the formatyyyy-mm-ddThh:mm:ss[.SSSZ]
. Note that this implementation discards milliseconds (i.e. rounds down to full seconds).- Parameters:
string
- (undocumented)- Returns:
- (undocumented)
-
-