* [ruby-dev:48558] [ruby-trunk - Bug #10258] [Open] conversion WIN32OLE_VARIANT and Time
[not found] <redmine.issue-10258.20140918160507@ruby-lang.org>
@ 2014-09-18 16:05 ` masaki.suketa
2014-09-21 2:18 ` [ruby-dev:48567] [ruby-trunk - Bug #10258] [Closed] " masaki.suketa
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: masaki.suketa @ 2014-09-18 16:05 UTC (permalink / raw
To: ruby-dev
Issue #10258 has been reported by Masaki Suketa.
----------------------------------------
Bug #10258: conversion WIN32OLE_VARIANT and Time
https://bugs.ruby-lang.org/issues/10258
* Author: Masaki Suketa
* Status: Open
* Priority: Normal
* Assignee: Masaki Suketa
* Category: core
* Target version: current: 2.2.0
* ruby -v: 2.2.0dev, 2.2.0-preview1
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
今日、うささんに教えていただいたテストの失敗は、こういう事象と同様だと思われます。
require 'win32ole'
t0 = Time.new(2014,9,19)
t0 += 0.9999
v = WIN32OLE_VARIANT.new(t0)
t1 = v.value
p t0 # => 2014-09-19 00:00:00 +0900
p t1 # => 2014-09-19 00:00:01 +0900
p t0.to_f # => 1411052400.9999
p t1.to_f # => 1411052401.0
t0 = Time.new(2014,9,19, 0, 0, 59)
t0 += 0.9999
v = WIN32OLE_VARIANT.new(t0)
t1 = v.value
p t0 # => 2014-09-19 00:00:59 +0900
p t1 # => 2014-09-19 00:02:00 +0900
p t0.to_f # => 1411052459.9999
p t1.to_f # => 1411052520.0
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-dev:48567] [ruby-trunk - Bug #10258] [Closed] conversion WIN32OLE_VARIANT and Time
[not found] <redmine.issue-10258.20140918160507@ruby-lang.org>
2014-09-18 16:05 ` [ruby-dev:48558] [ruby-trunk - Bug #10258] [Open] conversion WIN32OLE_VARIANT and Time masaki.suketa
@ 2014-09-21 2:18 ` masaki.suketa
2014-09-21 2:28 ` [ruby-dev:48568] [ruby-trunk - Bug #10258] " masaki.suketa
2014-09-21 15:40 ` [ruby-dev:48570] " nagachika00
3 siblings, 0 replies; 4+ messages in thread
From: masaki.suketa @ 2014-09-21 2:18 UTC (permalink / raw
To: ruby-dev
Issue #10258 has been updated by Masaki Suketa.
Status changed from Open to Closed
% Done changed from 0 to 100
Applied in changeset r47658.
----------
ext/win32ole/win32ole.c (rbtime2vtdate, vtdate2rbtime): fix
the bug in conversion of milliseconds. [Bug #10258]
test/win32ole/test_win32ole_variant.rb
(test_conversion_dbl2date_with_msec,
test_conversion_time2date_with_msec): use assert_in_delta instead
of assert_equal to treat an acceptable error range.
----------------------------------------
Bug #10258: conversion WIN32OLE_VARIANT and Time
https://bugs.ruby-lang.org/issues/10258#change-49020
* Author: Masaki Suketa
* Status: Closed
* Priority: Normal
* Assignee: Masaki Suketa
* Category: core
* Target version: current: 2.2.0
* ruby -v: 2.2.0dev, 2.2.0-preview1
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
今日、うささんに教えていただいたテストの失敗は、こういう事象と同様だと思われます。
require 'win32ole'
t0 = Time.new(2014,9,19)
t0 += 0.9999
v = WIN32OLE_VARIANT.new(t0)
t1 = v.value
p t0 # => 2014-09-19 00:00:00 +0900
p t1 # => 2014-09-19 00:00:01 +0900
p t0.to_f # => 1411052400.9999
p t1.to_f # => 1411052401.0
t0 = Time.new(2014,9,19, 0, 0, 59)
t0 += 0.9999
v = WIN32OLE_VARIANT.new(t0)
t1 = v.value
p t0 # => 2014-09-19 00:00:59 +0900
p t1 # => 2014-09-19 00:02:00 +0900
p t0.to_f # => 1411052459.9999
p t1.to_f # => 1411052520.0
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-dev:48568] [ruby-trunk - Bug #10258] conversion WIN32OLE_VARIANT and Time
[not found] <redmine.issue-10258.20140918160507@ruby-lang.org>
2014-09-18 16:05 ` [ruby-dev:48558] [ruby-trunk - Bug #10258] [Open] conversion WIN32OLE_VARIANT and Time masaki.suketa
2014-09-21 2:18 ` [ruby-dev:48567] [ruby-trunk - Bug #10258] [Closed] " masaki.suketa
@ 2014-09-21 2:28 ` masaki.suketa
2014-09-21 15:40 ` [ruby-dev:48570] " nagachika00
3 siblings, 0 replies; 4+ messages in thread
From: masaki.suketa @ 2014-09-21 2:28 UTC (permalink / raw
To: ruby-dev
Issue #10258 has been updated by Masaki Suketa.
Backport deleted (2.0.0: UNKNOWN, 2.1: UNKNOWN)
2.0.0と2.1へのBackportは不要です。
----------------------------------------
Bug #10258: conversion WIN32OLE_VARIANT and Time
https://bugs.ruby-lang.org/issues/10258#change-49023
* Author: Masaki Suketa
* Status: Closed
* Priority: Normal
* Assignee: Masaki Suketa
* Category: core
* Target version: current: 2.2.0
* ruby -v: 2.2.0dev, 2.2.0-preview1
* Backport:
----------------------------------------
今日、うささんに教えていただいたテストの失敗は、こういう事象と同様だと思われます。
require 'win32ole'
t0 = Time.new(2014,9,19)
t0 += 0.9999
v = WIN32OLE_VARIANT.new(t0)
t1 = v.value
p t0 # => 2014-09-19 00:00:00 +0900
p t1 # => 2014-09-19 00:00:01 +0900
p t0.to_f # => 1411052400.9999
p t1.to_f # => 1411052401.0
t0 = Time.new(2014,9,19, 0, 0, 59)
t0 += 0.9999
v = WIN32OLE_VARIANT.new(t0)
t1 = v.value
p t0 # => 2014-09-19 00:00:59 +0900
p t1 # => 2014-09-19 00:02:00 +0900
p t0.to_f # => 1411052459.9999
p t1.to_f # => 1411052520.0
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-dev:48570] [ruby-trunk - Bug #10258] conversion WIN32OLE_VARIANT and Time
[not found] <redmine.issue-10258.20140918160507@ruby-lang.org>
` (2 preceding siblings ...)
2014-09-21 2:28 ` [ruby-dev:48568] [ruby-trunk - Bug #10258] " masaki.suketa
@ 2014-09-21 15:40 ` nagachika00
3 siblings, 0 replies; 4+ messages in thread
From: nagachika00 @ 2014-09-21 15:40 UTC (permalink / raw
To: ruby-dev
Issue #10258 has been updated by Tomoyuki Chikanaga.
Backport set to 2.0.0: DONTNEED, 2.1: DONTNEED
----------------------------------------
Bug #10258: conversion WIN32OLE_VARIANT and Time
https://bugs.ruby-lang.org/issues/10258#change-49034
* Author: Masaki Suketa
* Status: Closed
* Priority: Normal
* Assignee: Masaki Suketa
* Category: core
* Target version: current: 2.2.0
* ruby -v: 2.2.0dev, 2.2.0-preview1
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED
----------------------------------------
今日、うささんに教えていただいたテストの失敗は、こういう事象と同様だと思われます。
require 'win32ole'
t0 = Time.new(2014,9,19)
t0 += 0.9999
v = WIN32OLE_VARIANT.new(t0)
t1 = v.value
p t0 # => 2014-09-19 00:00:00 +0900
p t1 # => 2014-09-19 00:00:01 +0900
p t0.to_f # => 1411052400.9999
p t1.to_f # => 1411052401.0
t0 = Time.new(2014,9,19, 0, 0, 59)
t0 += 0.9999
v = WIN32OLE_VARIANT.new(t0)
t1 = v.value
p t0 # => 2014-09-19 00:00:59 +0900
p t1 # => 2014-09-19 00:02:00 +0900
p t0.to_f # => 1411052459.9999
p t1.to_f # => 1411052520.0
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-09-21 15:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <redmine.issue-10258.20140918160507@ruby-lang.org>
2014-09-18 16:05 ` [ruby-dev:48558] [ruby-trunk - Bug #10258] [Open] conversion WIN32OLE_VARIANT and Time masaki.suketa
2014-09-21 2:18 ` [ruby-dev:48567] [ruby-trunk - Bug #10258] [Closed] " masaki.suketa
2014-09-21 2:28 ` [ruby-dev:48568] [ruby-trunk - Bug #10258] " masaki.suketa
2014-09-21 15:40 ` [ruby-dev:48570] " nagachika00
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).