use of com.amazon.ion.Timestamp in project amazon-qldb-dmv-sample-java by aws-samples.
the class IonLocalDateSerializer method serialize.
@Override
public void serialize(LocalDate date, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
Timestamp timestamp = Timestamp.forDay(date.getYear(), date.getMonthValue(), date.getDayOfMonth());
((IonGenerator) jsonGenerator).writeValue(timestamp);
}
Aggregations