摘要:
/** * @Description : 把byte转化为KB、MB、GB **/ public static String getNetFileSizeDescription(long size) { StringBuffer bytes = new StringBuffer(); Decimal 阅读全文
posted @ 2021-07-23 14:37
仲秋呀
阅读(1469)
评论(0)
推荐(0)
摘要:
/** * 返回 天 时 分 秒 * @param date 传入时间 与 当前时间做比较 返回相差的日期 > 返回 天 时 分 秒 * @return */ public static String dateToDayHourMinuteSecond(Date date){ SimpleDateF 阅读全文
posted @ 2021-07-23 14:35
仲秋呀
阅读(73)
评论(0)
推荐(0)
摘要:
/** * 相对时间 * @param date 传入时间 与 当前时间做比较 返回相差的日期 > 相对时间 * @return */ public static String dateToRelativeTime(Date date){ SimpleDateFormat df = new Simp 阅读全文
posted @ 2021-07-23 14:35
仲秋呀
阅读(134)
评论(0)
推荐(0)
摘要:
下方 这个是 传入 String类型 /** * 8位数字日期格式 转换成带 "-" 的格式化 20210701 --> 2021-07-01 * @param number * @return */ public static String numberToDateFormat(String nu 阅读全文
posted @ 2021-07-23 14:33
仲秋呀
阅读(743)
评论(0)
推荐(0)

浙公网安备 33010602011771号