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