Add seconds time format specifier.

This commit is contained in:
Nicolas Stepien 2012-05-14 19:50:12 +02:00
parent 436b72416d
commit 5469a08afb
3 changed files with 7 additions and 0 deletions

View File

@ -2832,6 +2832,9 @@
return 'pm';
}
},
S: function() {
return Time.zeroPad(Time.date.getSeconds());
},
y: function() {
return Time.date.getFullYear() - 2000;
}

View File

@ -1,4 +1,6 @@
master
- Mayhem
Add seconds as a supported Time Formatting specifier.
2.30.1
- Mayhem

View File

@ -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 =