Class DateTime$
java.lang.Object
org.apache.pekko.http.scaladsl.model.DateTime$
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(int year, int month, int day, int hour, int minute, int second) Creates a newDateTimewith the given properties.apply(long clicks) Creates a newDateTimefrom the number of milli seconds since the start of "the epoch", namely January 1, 1970, 00:00:00 GMT.scala.Option<DateTime>fromIsoDateTimeString(String string) Creates a new DateTime instance from the given String, if it adheres to the formatyyyy-mm-ddThh:mm:ss[.SSSZ].MaxValue()MinValue()month(int index) Returns the three-letter string for the month with the given index.now()Creates a newDateTimeinstance for the current point in time.weekday(int index) Returns the three-letter string for the weekday with the given index.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
DateTime$
public DateTime$()
-
-
Method Details
-
weekday
Returns the three-letter string for the weekday with the given index. Sunday is zero.- Parameters:
index- (undocumented)- Returns:
- (undocumented)
-
month
Returns the three-letter string for the month with the given index. January is zero.- Parameters:
index- (undocumented)- Returns:
- (undocumented)
-
MinValue
-
MaxValue
-
apply
Creates a newDateTimewith 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
Creates a newDateTimefrom 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
Creates a newDateTimeinstance for the current point in time. Note that this implementation discards milliseconds (i.e. rounds down to full seconds).- Returns:
- (undocumented)
-
fromIsoDateTimeString
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)
-