diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-07 21:07:01 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-07 21:07:01 +0000 |
commit | a5d37d10a9e18952badcf821679104613590e779 (patch) | |
tree | b45b339a3009fdbbbc8b9999ff08f88cef1da56f /time.c | |
parent | 8f11f4bcb4e3ed3b087d19a163f3efda7de07821 (diff) | |
download | ruby-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 * |