Add seconds time format specifier.
This commit is contained in:
parent
436b72416d
commit
5469a08afb
@ -2832,6 +2832,9 @@
|
|||||||
return 'pm';
|
return 'pm';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
S: function() {
|
||||||
|
return Time.zeroPad(Time.date.getSeconds());
|
||||||
|
},
|
||||||
y: function() {
|
y: function() {
|
||||||
return Time.date.getFullYear() - 2000;
|
return Time.date.getFullYear() - 2000;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
master
|
master
|
||||||
|
- Mayhem
|
||||||
|
Add seconds as a supported Time Formatting specifier.
|
||||||
|
|
||||||
2.30.1
|
2.30.1
|
||||||
- Mayhem
|
- Mayhem
|
||||||
|
|||||||
@ -1712,6 +1712,7 @@ Options =
|
|||||||
<li>Year: %y</li>
|
<li>Year: %y</li>
|
||||||
<li>Hour: %k, %H, %l (lowercase L), %I (uppercase i), %p, %P</li>
|
<li>Hour: %k, %H, %l (lowercase L), %I (uppercase i), %p, %P</li>
|
||||||
<li>Minutes: %M</li>
|
<li>Minutes: %M</li>
|
||||||
|
<li>Seconds: %S</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class=warning><code>File Info Formatting</code> is disabled.</div>
|
<div class=warning><code>File Info Formatting</code> is disabled.</div>
|
||||||
<ul>
|
<ul>
|
||||||
@ -2197,6 +2198,7 @@ Time =
|
|||||||
M: -> Time.zeroPad Time.date.getMinutes()
|
M: -> Time.zeroPad Time.date.getMinutes()
|
||||||
p: -> if Time.date.getHours() < 12 then 'AM' else 'PM'
|
p: -> if Time.date.getHours() < 12 then 'AM' else 'PM'
|
||||||
P: -> if Time.date.getHours() < 12 then 'am' else 'pm'
|
P: -> if Time.date.getHours() < 12 then 'am' else 'pm'
|
||||||
|
S: -> Time.zeroPad Time.date.getSeconds()
|
||||||
y: -> Time.date.getFullYear() - 2000
|
y: -> Time.date.getFullYear() - 2000
|
||||||
|
|
||||||
FileInfo =
|
FileInfo =
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user