### Question:
Utils { public static Timestamp convertDateTime(String s, int precision) { if (s.startsWith(ZERO_DATETIME)) { return new Timestamp(0L); } return Timestamp.valueOf(Utils.parseDateTimeText(s, precision)); }  static O cast(Object object); static String sanitize(String input); static String humanReadableBytes(long bytes); static String humanReadableBytes(long bytes, boolean si); static Long maybeUndefined(long val); static int[] getBitArray(SliceInput input, int numOfBits); static List<String> getFromBitArray(List<T> list, int[] bitArray, Function<T, String> func); static List<T> makeNotNull(List<T> list); static boolean allEmpty(Collection<?>... collections); static boolean noneEmpty(Collection<?>... collections); static boolean anyElementEmpty(Collection<?> collection); @VisibleForTesting static int castCompare(List<Object> recordKey, List<Object> targetKey); static int castCompare(List<Object> recordKey, List<Object> targetKey,
                                List<Column> keyColumnList); static int castCompare(Object recordKey, Object targetKey, Column column); static void close(Closeable closeable); static List<Object> constructMaxRecord(int keyLen); static List<Object> constructMinRecord(int keyLen); static List<Object> expandRecord(List<Object> key, ComparisonOperator operator, int keyLen); static Pair<Integer, String> processFileWithDelimiter(String filePath, String charset,
                                                               Consumer<String> func, String delimiter); static boolean isOptionalPresent(Optional<T> optional); static String tailTrim(String value); static String formatDate(int year, int month, int day); static String formatIntLessThan10000(int val); static String formatIntLessThan100(int val); static Timestamp convertDateTime(String s, int precision); static LocalDateTime parseDateTimeText(String s); static LocalDateTime parseDateTimeText(String s, int precision); static Time convertTime(String s, int precision); static LocalTime parseTimeText(String s); static LocalTime parseTimeText(String s, int precision); static TimeZone getTimeZone(); static final DateTimeFormatter[] TIME_FORMAT_TIMESTAMP; static final DateTimeFormatter[] TIME_FORMAT_TIME; }### Answer:
@Test public void testConvertDateTimeText() { String s = "2020-05-01 12:15:59"; Timestamp dt = Utils.convertDateTime(s, 0); assertThat(dt.toString(), is("2020-05-01 12:15:59.0")); }