Commit 5777aeb4 by MMF

MMF 2026-03-26 评分填报导出修改

parent 4f094081
......@@ -5,13 +5,19 @@ import java.time.format.DateTimeFormatter;
public class MtTimeUtil {
private static final DateTimeFormatter DATA_TIME_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
private static final DateTimeFormatter DATA_TIME_FORMATTER_NYR = DateTimeFormatter.ofPattern("yyyy-MM-dd");
/**
* LocalDateTime -> String
* @param localDateTime
* @return
* LocalDateTime -> String yyyy-MM-dd HH:mm:ss
*/
public static String dateTimeFormat(LocalDateTime localDateTime){
return DATA_TIME_FORMATTER.format(localDateTime);
}
/**
* LocalDateTime -> String yyyy-MM-dd
*/
public static String dateTimeFormatNyr(LocalDateTime localDateTime){
return DATA_TIME_FORMATTER_NYR.format(localDateTime);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment