summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-07 21:07:01 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-07 21:07:01 +0000
commita5d37d10a9e18952badcf821679104613590e779 (patch)
treeb45b339a3009fdbbbc8b9999ff08f88cef1da56f /time.c
parent8f11f4bcb4e3ed3b087d19a163f3efda7de07821 (diff)
downloadruby-a5d37d10a9e18952badcf821679104613590e779.tar.gz
* strftime.c (rb_strftime_with_timespec): support %:z and %::z.
[ruby-dev:41841] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/time.c b/time.c
index 934cfd7405..433bcdb972 100644
--- a/time.c
+++ b/time.c
@@ -4346,7 +4346,9 @@ strftimev(const char *fmt, VALUE time)
* %X - Preferred representation for the time alone, no date
* %y - Year without a century (00..99)
* %Y - Year with century
- * %z - Time zone as hour offset from UTC (e.g. +0900)
+ * %z - Time zone as hour and minute offset from UTC (e.g. +0900)
+ * %:z - hour and minute offset from UTC with a colon (e.g. +09:00)
+ * %::z - hour, minute and second offset from UTC (e.g. +09:00:00)
* %Z - Time zone name
* %% - Literal ``%'' character
*