MCPcopy Create free account
hub / github.com/afkT/DevUtils / parseDate

Method parseDate

lib/DevApp/src/main/java/dev/utils/common/DateUtils.java:272–275  ·  view source on GitHub ↗

将时间毫秒转换成 Date @param millis 时间毫秒 @return Date

(final long millis)

Source from the content-addressed store, hash-verified

270 * @return {@link Date}
271 */
272 public static Date parseDate(final long millis) {
273 if (millis == -1L) return null;
274 return new Date(millis);
275 }
276
277 /**
278 * 解析时间字符串转换为 Date

Callers

nothing calls this directly

Calls 3

parseLongMethod · 0.95
getDefaultFormatMethod · 0.95
getSafeDateFormatMethod · 0.95

Tested by

no test coverage detected