equal
deleted
inserted
replaced
93 %4.4D => Thursday, May 5, 2022 at 9:26:59 AM Central European Summer Time |
93 %4.4D => Thursday, May 5, 2022 at 9:26:59 AM Central European Summer Time |
94 |
94 |
95 see meaning of DateTimeFormat's options "datestyle" and "timestyle" in MDN |
95 see meaning of DateTimeFormat's options "datestyle" and "timestyle" in MDN |
96 */ |
96 */ |
97 |
97 |
98 let [datestyle, timestyle] = [ph.width, ph.precision].map(val => { |
98 let [datestyle, timestyle] = [ph.width, ph.precision].map(val => ({ |
99 1: "short", |
99 1: "short", |
100 2: "medium", |
100 2: "medium", |
101 3: "long", |
101 3: "long", |
102 4: "full" |
102 4: "full" |
103 }[val]); |
103 }[val])); |
104 |
104 |
105 if(timestyle === undefined && datestyle === undefined){ |
105 if(timestyle === undefined && datestyle === undefined){ |
106 timestyle = "short"; |
106 timestyle = "short"; |
107 } |
107 } |
108 |
108 |