Commit ef2be082 by Sixong.Zhu

u

parent 92c613bb
Showing with 2 additions and 2 deletions
......@@ -31,14 +31,14 @@ function formatHour2Friendly(hour: number) {
return "晚上";
}
function formatHour12Unit(hour: number, rule: TimeFormatRule) {
function formatHour12Unit(hour: number, rule?: TimeFormatRule) {
if (rule === TimeFormatRule.Hour12) {
return hour > 12 ? hour - 12 : hour;
}
return hour;
}
function format2DetailTime(hour: number, time: Date, rule: TimeFormatRule) {
function format2DetailTime(hour: number, time: Date, rule?: TimeFormatRule) {
let hourString = "";
const h = formatHour12Unit(hour, rule);
if (h < 10) {
......
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 sign in to comment