From: Stuart Clarke Date: 2010-09-21T01:07:30+09:00 Subject: Re: Windows Filetime Chris Hulan wrote: > On Sep 17, 10:19�am, Brian Candler wrote: >> The first hit is code. >> Posted viahttp://www.ruby-forum.com/. > It looks like Win32::Registry.wtime2time() (http://ruby-doc.org/stdlib/ > libdoc/Win32API/rdoc/classes/Win32/Registry.html#M001570) > might do the trick. I have just tried this and I get a big num error. See an example below: puts Win32::Registry.wtime2time(185714508829513297) When I try the following however it works: require 'date' highpart = 29513297 lowpart = 1857145088 intLogonTime = highpart * (2**32) + lowpart intLogonFloat = intLogonTime.to_f / (60 * 10000000 * 1440).to_f last_logon = intLogonFloat base = DateTime.new(1601,1,1,0,0,0) base += intLogonFloat p base.to_s Any ideas? -- Posted via http://www.ruby-forum.com/.