End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Win32::Registry.time2wtime
time2wtime(time)
ext/win32/lib/win32/registry.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/ext/win32/lib/win32/registry.rb, line 409
def self.time2wtime(time)
time.to_i * 10000000 + 116444736000000000
end