JsLocalDateTime

smile.json.JsLocalDateTime
See theJsLocalDateTime companion object
case class JsLocalDateTime(value: LocalDateTime) extends JsValue, Ordered[JsLocalDateTime]

An immutable date-time without a time-zone in the ISO-8601 calendar system, such as 2007-12-03T10:15:30. Although LocalTime/JsTime can be represented to nanosecond precision, a JSON serializer may not store the nano-of-second field to save the space. To preserve the high precision of time, JsTimestamp should be employed.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Ordered[JsLocalDateTime]
trait Comparable[JsLocalDateTime]
trait JsValue
trait Dynamic
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def asDouble: Double

Converts this date-time to the number of seconds from the epoch of 1970-01-01T00:00:00Z.

Converts this date-time to the number of seconds from the epoch of 1970-01-01T00:00:00Z.

Attributes

Definition Classes
override def asInstant: Instant

Attributes

Definition Classes
override def asLocalDate: LocalDate

Attributes

Definition Classes
override def asLocalDateTime: LocalDateTime

Attributes

Definition Classes
override def asLocalTime: LocalTime

Attributes

Definition Classes
override def asLong: Long

Converts this date-time to the number of seconds from the epoch of 1970-01-01T00:00:00Z.

Converts this date-time to the number of seconds from the epoch of 1970-01-01T00:00:00Z.

Attributes

Definition Classes
override def asTimestamp: Timestamp

Attributes

Definition Classes
override def compare(that: JsLocalDateTime): Int

Result of comparing this with operand that.

Result of comparing this with operand that.

Implement this method to determine how instances of A will be sorted.

Returns x where:

  • x < 0 when this < that

  • x == 0 when this == that

  • x > 0 when this > that

Value parameters

that

the instance to compare against

Attributes

Returns

an integer whose sign indicates the ordering relation between this and that

Definition Classes
Ordered
override def equals(o: Any): Boolean

Checks whether this instance is equal to that. This universal equality method is defined in AnyRef.

Checks whether this instance is equal to that. This universal equality method is defined in AnyRef.

Attributes

Definition Classes
Equals -> Any
override def toString: String

The output will be one of the following ISO-8601 formats:

The output will be one of the following ISO-8601 formats:

  • uuuu-MM-dd'T'HH:mm
  • uuuu-MM-dd'T'HH:mm:ss
  • uuuu-MM-dd'T'HH:mm:ss.SSS
  • uuuu-MM-dd'T'HH:mm:ss.SSSSSS
  • uuuu-MM-dd'T'HH:mm:ss.SSSSSSSSS

The format used will be the shortest that outputs the full value of the time where the omitted parts are implied to be zero.

Attributes

Definition Classes
JsValue -> Any

Inherited methods

def <(that: JsLocalDateTime): Boolean

Returns true if this is less than that

Returns true if this is less than that

Value parameters

that

the instance to compare against

Attributes

Inherited from:
Ordered
def <=(that: JsLocalDateTime): Boolean

Returns true if this is less than or equal to that.

Returns true if this is less than or equal to that.

Attributes

Inherited from:
Ordered
def >(that: JsLocalDateTime): Boolean

Returns true if this is greater than that.

Returns true if this is greater than that.

Value parameters

that

the instance to compare against

Attributes

Inherited from:
Ordered
def >=(that: JsLocalDateTime): Boolean

Returns true if this is greater than or equal to that.

Returns true if this is greater than or equal to that.

Attributes

Inherited from:
Ordered
def apply(range: Range): JsArray

Attributes

Inherited from:
JsValue
def apply(start: Int, end: Int, step: Int): JsArray

Attributes

Inherited from:
JsValue
def apply(start: Int, end: Int): JsArray

Attributes

Inherited from:
JsValue
def apply(index: Int): JsValue

Attributes

Inherited from:
JsValue
def apply(key: String): JsValue

Attributes

Inherited from:
JsValue
def applyDynamic(key: String)(index: Int): JsValue

Attributes

Inherited from:
JsValue
def asBoolean: Boolean

Attributes

Inherited from:
JsValue
def asDecimal: BigDecimal

Attributes

Inherited from:
JsValue
def asInt: Int

Attributes

Inherited from:
JsValue
def compactPrint: String

Attributes

Inherited from:
JsValue
def compareTo(that: JsLocalDateTime): Int

Result of comparing this with operand that.

Result of comparing this with operand that.

Value parameters

that

the instance to compare against

Attributes

Inherited from:
Ordered
def get(key: String): Option[JsValue]

Attributes

Inherited from:
JsValue
def prettyPrint: String

Attributes

Inherited from:
JsValue
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
def remove(index: Int): JsValue

Attributes

Inherited from:
JsValue
def remove(key: String): Option[JsValue]

Attributes

Inherited from:
JsValue
def selectDynamic(key: String): JsValue

Attributes

Inherited from:
JsValue
def update(index: Int, value: JsValue): JsValue

Attributes

Inherited from:
JsValue
def update(key: String, value: JsValue): JsValue

Attributes

Inherited from:
JsValue
def updateDynamic(index: Int)(value: JsValue): JsValue

Attributes

Inherited from:
JsValue
def updateDynamic(key: String)(value: JsValue): JsValue

Attributes

Inherited from:
JsValue