mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 18:43:59 +02:00
* strftime.c (rb_strftime): The precision of %0N should be 9.
[ruby-dev:37156] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
32aed81046
commit
aa498028b2
3 changed files with 9 additions and 3 deletions
|
@ -396,7 +396,7 @@ class TestTime < Test::Unit::TestCase
|
|||
assert_equal("123456", t.strftime("%6N"))
|
||||
assert_equal("123456789", t.strftime("%9N"))
|
||||
assert_equal("1234567890", t.strftime("%10N"))
|
||||
assert_equal("", t.strftime("%0N"))
|
||||
assert_equal("123456789", t.strftime("%0N"))
|
||||
assert_equal("000", t.strftime("%3S"))
|
||||
assert_equal("946684800", t.strftime("%s"))
|
||||
assert_equal("946684800", t.utc.strftime("%s"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue