convertToZHDateTimeString static method
Implementation
static String convertToZHDateTimeString(String time, String? timeSeparate) {
time = time.replaceFirst("-", "年");
time = time.replaceFirst("-", "月");
time = time.replaceFirst(" ", "日 ");
if (timeSeparate == null || timeSeparate.isEmpty) {
time = time.replaceFirst(":", "时");
time = time.replaceFirst(":", "分");
time = time.replaceFirst(".", "秒");
time = "$time毫秒";
} else {
time = time.replaceAll(":", timeSeparate);
}
return time;
}