com.symphony.bdk.http.jersey2.RFC3339DateFormat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of symphony-bdk-http-jersey2 Show documentation
Show all versions of symphony-bdk-http-jersey2 Show documentation
Symphony Java BDK Core Http Jersey2
package com.symphony.bdk.http.jersey2;
import com.fasterxml.jackson.databind.util.ISO8601DateFormat;
import com.fasterxml.jackson.databind.util.ISO8601Utils;
import org.apiguardian.api.API;
import java.text.FieldPosition;
import java.util.Date;
@API(status = API.Status.INTERNAL)
public class RFC3339DateFormat extends ISO8601DateFormat {
// Same as ISO8601DateFormat but serializing milliseconds.
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
String value = ISO8601Utils.format(date, true);
toAppendTo.append(value);
return toAppendTo;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy