From 5469a08afba813a87ec1f7f29bb6c130621fc807 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 14 May 2012 19:50:12 +0200 Subject: [PATCH] Add seconds time format specifier. --- 4chan_x.user.js | 3 +++ changelog | 2 ++ script.coffee | 2 ++ 3 files changed, 7 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index d4e0edd8e..0651aa00c 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2832,6 +2832,9 @@ return 'pm'; } }, + S: function() { + return Time.zeroPad(Time.date.getSeconds()); + }, y: function() { return Time.date.getFullYear() - 2000; } diff --git a/changelog b/changelog index 2210b18f5..de4336b20 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,6 @@ master +- Mayhem + Add seconds as a supported Time Formatting specifier. 2.30.1 - Mayhem diff --git a/script.coffee b/script.coffee index b52c60ee1..971fd14d2 100644 --- a/script.coffee +++ b/script.coffee @@ -1712,6 +1712,7 @@ Options =
  • Year: %y
  • Hour: %k, %H, %l (lowercase L), %I (uppercase i), %p, %P
  • Minutes: %M
  • +
  • Seconds: %S
  • File Info Formatting is disabled.