Class InstantAsDateTimeCodec

  • All Implemented Interfaces:
    Codec<Instant>, Decoder<Instant>, Encoder<Instant>

    public final class InstantAsDateTimeCodec
    extends Object
    implements Codec<Instant>

    Encodes and decodes Instant values to and from BSON DateTime.

    Note that the nanoseconds precision is lost.

    This type is immutable.