List of utility methods to do Instant to String
String | timestampToDecimalString(Instant t) Converts the timestamp to seconds as a floating point (seconds.nano). return t.getEpochSecond() + "." + NANO_FORMATTER.get().format(t.getNano()); |
String | timestampToLittleEndianString(Instant t, boolean includeYear) Transforms the timestamp to string, using the format HH:mm:ss.SSS MMM dd (yyyy). if (t == null) { return null; return includeYear ? SLE_TIMESTAMP_FORMATTER.get().format(Date.from(t)) : LE_TIMESTAMP_FORMATTER.get().format(Date.from(t)); |