Class DateTime$

  • All Implemented Interfaces:
    java.io.Serializable

    public class DateTime$
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static DateTime$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • 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 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.
      • Methods inherited from class java.lang.Object

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

      • MODULE$

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

      • DateTime$

        public DateTime$()
    • 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)
      • 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​(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]. Note that this implementation discards milliseconds (i.e. rounds down to full seconds).
        Parameters:
        string - (undocumented)
        Returns:
        (undocumented)