From a5d37d10a9e18952badcf821679104613590e779 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 7 Jul 2010 21:07:01 +0000 Subject: * 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 --- time.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'time.c') 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 * -- cgit v1.2.3