object DateTime extends Serializable

Source
DateTime.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DateTime
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val MaxValue: DateTime
  2. val MinValue: DateTime
  3. def apply(clicks: Long): DateTime

    Creates a new DateTime from the number of milli seconds since the start of "the epoch", namely January 1, 1970, 00:00:00 GMT.

    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).

  4. def apply(year: Int, month: Int, day: Int, hour: Int = 0, minute: Int = 0, second: Int = 0): DateTime

    Creates a new DateTime with the given properties.

    Creates a new DateTime with the given properties. Note that this implementation discards milliseconds (i.e. rounds down to full seconds).

  5. def fromIsoDateTimeString(string: String): Option[DateTime]

    Creates a new DateTime instance from the given String, if it adheres to the format yyyy-mm-ddThh:mm:ss[.SSSZ].

    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).

  6. def month(index: Int): String

    Returns the three-letter string for the month with the given index.

    Returns the three-letter string for the month with the given index. January is zero.

  7. def now: DateTime

    Creates a new DateTime instance for the current point in time.

    Creates a new DateTime instance for the current point in time. Note that this implementation discards milliseconds (i.e. rounds down to full seconds).

  8. def weekday(index: Int): String

    Returns the three-letter string for the weekday with the given index.

    Returns the three-letter string for the weekday with the given index. Sunday is zero.