Package jsonvalues

Class JsInstant

  • All Implemented Interfaces:
    Comparable<JsInstant>, JsValue

    public final class JsInstant
    extends JsPrimitive
    implements Comparable<JsInstant>
    Represents an immutable instant. An instant is not part of the Json specification. It is serialized into it's a string representation using ISO-8601 representation. A JsInstant and a JsStr are equals if both represent the same date. Instant a = Instant.now(); JsStr.of(a.toString()).equals(JsInstant.of(a)) // true