diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-01 12:11:53 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-01 12:11:53 +0000 |
commit | 6927c6aa1ec3e92ccc9fd1b5a8f2ea634f50fb02 (patch) | |
tree | cebf4c2f6f68db02ce863e3c6f7c31de7b3008be /test | |
parent | c8742da818dd754b64a8ee45723ec892a53dc1ac (diff) | |
download | ruby-6927c6aa1ec3e92ccc9fd1b5a8f2ea634f50fb02.tar.gz ruby-6927c6aa1ec3e92ccc9fd1b5a8f2ea634f50fb02.tar.xz ruby-6927c6aa1ec3e92ccc9fd1b5a8f2ea634f50fb02.zip |
* include/ruby/intern.h (rb_time_num_new): declared.
* time.c (nsec2timev): extracted from time_new_internal.
(time_new_internal): change argument to VALUE.
(rb_time_new): follow the argument change.
(rb_time_nano_new): ditto.
(rb_time_num_new): new function.
* ext/socket/ancdata.c (ancillary_timestamp): use rb_time_num_new to
represent struct bintime preciously.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/socket/test_socket.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb index ddfd61b9e..aaaa9c43c 100644 --- a/test/socket/test_socket.rb +++ b/test/socket/test_socket.rb @@ -383,6 +383,7 @@ class TestSocket < Test::Unit::TestCase assert_match(pat, stamp.inspect) t = stamp.timestamp assert_match(pat, t.strftime("%Y-%m-%d")) + assert_equal(stamp.data[-8,8].unpack("Q")[0], t.subsec * 2**64) end end if defined?(Socket) |