Class IsoDates

    • Constructor Detail

      • IsoDates

        @MorphiaInternal
        public IsoDates​(String operation,
                        Expression date)
        Parameters:
        operation -
        date -
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Method Detail

      • encode

        public void encode​(Datastore datastore,
                           org.bson.BsonWriter writer,
                           org.bson.codecs.EncoderContext encoderContext)
        Overrides:
        encode in class Expression
        Parameters:
        datastore - the datastore
        writer - the writer
        encoderContext - the context
      • timezone

        public IsoDates timezone​(Expression timezone)
        The optional timezone to use to format the date. By default, it uses UTC.
        Parameters:
        timezone - the expression
        Returns:
        this