mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/time.rb: Use "<<" to reduce string allocation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
af4c1ac8af
commit
fb2a6ecf9e
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Nov 14 21:44:56 2015 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/time.rb: Use "<<" to reduce string allocation.
|
||||
|
||||
Sat Nov 14 17:45:49 2015 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/tsort.rb: Specify frozen_string_literal: true.
|
||||
|
|
|
@ -616,7 +616,7 @@ class Time
|
|||
sprintf('%s, %02d %s %0*d %02d:%02d:%02d ',
|
||||
RFC2822_DAY_NAME[wday],
|
||||
day, RFC2822_MONTH_NAME[mon-1], year < 0 ? 5 : 4, year,
|
||||
hour, min, sec) +
|
||||
hour, min, sec) <<
|
||||
if utc?
|
||||
'-0000'
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue