@Test void testFormatDate() { assertThat(toIsoString(Instant.parse("2018-12-07T12:30:37Z"))).isEqualTo("2018-12-07T12:30:37.000Z"); assertThat(toIsoString(Instant.parse("2018-12-07T12:30:37.81Z"))).isEqualTo("2018-12-07T12:30:37.810Z"); assertThat(toIsoString(Instant.parse("2018-12-07T12:30:37.811Z"))).isEqualTo("2018-12-07T12:30:37.811Z"); }
public static String toIsoString(@NonNull Instant instant) { OffsetDateTime utc = instant.atOffset(ZoneOffset.UTC); return formatter.format(utc); }
Utils { public static String toIsoString(@NonNull Instant instant) { OffsetDateTime utc = instant.atOffset(ZoneOffset.UTC); return formatter.format(utc); } }
Utils { public static String toIsoString(@NonNull Instant instant) { OffsetDateTime utc = instant.atOffset(ZoneOffset.UTC); return formatter.format(utc); } private  Utils(); }
Utils { public static String toIsoString(@NonNull Instant instant) { OffsetDateTime utc = instant.atOffset(ZoneOffset.UTC); return formatter.format(utc); } private  Utils(); @NonNull static String getHostname(); static String toIsoString(@NonNull Instant instant); }
Utils { public static String toIsoString(@NonNull Instant instant) { OffsetDateTime utc = instant.atOffset(ZoneOffset.UTC); return formatter.format(utc); } private  Utils(); @NonNull static String getHostname(); static String toIsoString(@NonNull Instant instant);  }