summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-08 13:05:17 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-08 13:05:17 +0000
commitc2e127a768bb22299cbeeada5b0d4d8e90a5425a (patch)
treee13d7eac2cb029422aaa08ccd51da75a46bfe101 /time.c
parent3a6fd339d54dc9b11a137567d6b1aefe5f3ec53d (diff)
document %g and %G for Time#strftime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/time.c b/time.c
index 433bcdb972..eb364afffa 100644
--- a/time.c
+++ b/time.c
@@ -4310,6 +4310,8 @@ strftimev(const char *fmt, VALUE time)
* %D - Date (%m/%d/%y)
* %e - Day of the month, blank-padded ( 1..31)
* %F - Equivalent to %Y-%m-%d (the ISO 8601 date format)
+ * %g - The last 2 digits of the week-based year according to ISO 8601
+ * %G - The week-based year according to ISO 8601
* %h - Equivalent to %b
* %H - Hour of the day, 24-hour clock (00..23)
* %I - Hour of the day, 12-hour clock (01..12)