|
|
@@ -48,15 +48,14 @@
|
|
|
}], //Hours; leading zero for single-digit hours (12-hour clock).
|
|
|
hhh: ["[0-9]+", Date.prototype.setHours, "hours", Date.prototype.getHours], //Hours; no limit
|
|
|
H: ["1?[0-9]|2[0-3]", Date.prototype.setHours, "hours", Date.prototype.getHours], //Hours; no leading zero for single-digit hours (24-hour clock).
|
|
|
- HH: ["[01][0-9]|2[0-3]", Date.prototype.setHours, "hours", function () {
|
|
|
+ HH: ["0[0-9]|1[0-9]|2[0-3]", Date.prototype.setHours, "hours", function () {
|
|
|
return pad(Date.prototype.getHours.call(this), 2);
|
|
|
}], //Hours; leading zero for single-digit hours (24-hour clock).
|
|
|
HHH: ["[0-9]+", Date.prototype.setHours, "hours", Date.prototype.getHours], //Hours; no limit
|
|
|
M: ["[1-5]?[0-9]", Date.prototype.setMinutes, "minutes", Date.prototype.getMinutes], //Minutes; no leading zero for single-digit minutes. Uppercase M unlike CF timeFormat's m to avoid conflict with months.
|
|
|
- MM: ["[0-5][0-9]", Date.prototype.setMinutes, "minutes", function () {
|
|
|
+ MM: ["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setMinutes, "minutes", function () {
|
|
|
return pad(Date.prototype.getMinutes.call(this), 2);
|
|
|
- }], //Minutes; leading zero for single-digit minutes. Uppercase MM unlike CF timeFormat's mm to avoid conflict with months.
|
|
|
- s: ["[1-5]?[0-9]", Date.prototype.setSeconds, "seconds", Date.prototype.getSeconds], //Seconds; no leading zero for single-digit seconds.
|
|
|
+ }], //Minutes; leading zero for single-digit minutes. Uppercase MM unlike CF timeFormat's mm to avoid conflict with months. s: ["[1-5]?[0-9]", Date.prototype.setSeconds, "seconds", Date.prototype.getSeconds], //Seconds; no leading zero for single-digit seconds.
|
|
|
ss: ["[0-5][0-9]", Date.prototype.setSeconds, "seconds", function () {
|
|
|
return pad(Date.prototype.getSeconds.call(this), 2);
|
|
|
}], //Seconds; leading zero for single-digit seconds.
|