ruby-changes:28057
From: akr <ko1@a...>
Date: Thu, 4 Apr 2013 22:37:36 +0900 (JST)
Subject: [ruby-changes:28057] akr:r40109 (trunk): * time.c (time_strftime): Describe %L and %N truncates digits under
akr 2013-04-04 22:37:22 +0900 (Thu, 04 Apr 2013) New Revision: 40109 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40109 Log: * time.c (time_strftime): Describe %L and %N truncates digits under the specified length. [ruby-core:52130] [Bug #7829] Modified files: trunk/ChangeLog trunk/time.c Index: time.c =================================================================== --- time.c (revision 40108) +++ time.c (revision 40109) @@ -4455,6 +4455,7 @@ strftimev(const char *fmt, VALUE time, r https://github.com/ruby/ruby/blob/trunk/time.c#L4455 * %S - Second of the minute (00..60) * * %L - Millisecond of the second (000..999) + * The digits under millisecond are truncated to not produce 1000. * %N - Fractional seconds digits, default is 9 digits (nanosecond) * %3N milli second (3 digits) * %6N micro second (6 digits) @@ -4464,6 +4465,8 @@ strftimev(const char *fmt, VALUE time, r https://github.com/ruby/ruby/blob/trunk/time.c#L4465 * %18N atto second (18 digits) * %21N zepto second (21 digits) * %24N yocto second (24 digits) + * The digits under the specified length are truncated to avoid + * carry up. * * Time zone: * %z - Time zone as hour and minute offset from UTC (e.g. +0900) Index: ChangeLog =================================================================== --- ChangeLog (revision 40108) +++ ChangeLog (revision 40109) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Apr 4 22:32:32 2013 Tanaka Akira <akr@f...> + + * time.c (time_strftime): Describe %L and %N truncates digits under + the specified length. + [ruby-core:52130] [Bug #7829] + Thu Apr 4 22:08:46 2013 Tanaka Akira <akr@f...> * object.c (rb_mod_cvar_set): Reverted "avoid inadvertent -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/