Class DateTime$

java.lang.Object
akka.http.scaladsl.model.DateTime$
All Implemented Interfaces:
Serializable

public class DateTime$ extends Object implements Serializable
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final DateTime$
    Static reference to the singleton instance of this Scala object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(int year, int month, int day, int hour, int minute, int second)
    Creates a new DateTime with the given properties.
    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>
    Creates a new DateTime instance from the given String, if it adheres to the format yyyy-mm-ddThh:mm:ss[.SSSZ].
     
     
    month(int index)
    Returns the three-letter string for the month with the given index.
    now()
    Creates a new DateTime instance for the current point in time.
    weekday(int index)
    Returns the three-letter string for the weekday with the given index.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MODULE$

      public static final DateTime$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • DateTime$

      public DateTime$()
  • Method Details

    • weekday

      public 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 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 new DateTime 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 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).
      Parameters:
      clicks - (undocumented)
      Returns:
      (undocumented)
    • now

      public DateTime now()
      Creates a new DateTime 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(String string)
      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).
      Parameters:
      string - (undocumented)
      Returns:
      (undocumented)