ruby-changes:46522
From: stomar <ko1@a...>
Date: Wed, 10 May 2017 03:56:29 +0900 (JST)
Subject: [ruby-changes:46522] stomar:r58643 (trunk): date_core.c: fix docs for %Z format
stomar 2017-05-10 03:56:22 +0900 (Wed, 10 May 2017) New Revision: 58643 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58643 Log: date_core.c: fix docs for %Z format * ext/date/date_core.c: [DOC] fix documentation for %Z format of {Date,DateTime}.strftime. Reported by Damon Timm. Based on a patch by nano. [ruby-core:79602] [Bug #13231] [Fix GH-1565] Modified files: trunk/ext/date/date_core.c Index: ext/date/date_core.c =================================================================== --- ext/date/date_core.c (revision 58642) +++ ext/date/date_core.c (revision 58643) @@ -6802,7 +6802,7 @@ date_strftime_internal(int argc, VALUE * https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L6802 * %::z - hour, minute and second offset from UTC (e.g. +09:00:00) * %:::z - hour, minute and second offset from UTC * (e.g. +09, +09:30, +09:30:30) - * %Z - Time zone abbreviation name or something similar information. + * %Z - Equivalent to %:z (e.g. +09:00) * * Weekday: * %A - The full weekday name (``Sunday'') @@ -8247,7 +8247,7 @@ dt_lite_to_s(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L8247 * %::z - hour, minute and second offset from UTC (e.g. +09:00:00) * %:::z - hour, minute and second offset from UTC * (e.g. +09, +09:30, +09:30:30) - * %Z - Time zone abbreviation name or something similar information. + * %Z - Equivalent to %:z (e.g. +09:00) * * Weekday: * %A - The full weekday name (``Sunday'') -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/