summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-17 17:00:36 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-17 17:00:36 +0000
commit76fe9e893cc123b9651bcf38620794c6095bb11d (patch)
tree422fccc2ef01e9f9d2d43758bff93175a81fe8f6
parent5dfd9b38db18846d13f06f6c9b9f8352bb047f43 (diff)
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--time.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/time.c b/time.c
index c454abe4fa..e6a02e5440 100644
--- a/time.c
+++ b/time.c
@@ -4362,7 +4362,8 @@ strftimev(const char *fmt, VALUE time)
* Format directives:
*
* Date (Year, Month, Day):
- * %Y - Year with century
+ * %Y - Year with century (can be negative, 4 digits at least)
+ * -0001, 0000, 1995, 2009, 14292, etc.
* %C - Century (20 in 2009)
* %y - Year without a century (00..99)
*
@@ -4398,6 +4399,7 @@ strftimev(const char *fmt, VALUE time)
* %3N millisecond (3 digits)
* %6N microsecond (6 digits)
* %9N nanosecond (9 digits)
+ * %12N picosecond (12 digits)
*
* Time zone:
* %z - Time zone as hour and minute offset from UTC (e.g. +0900)