On Sep 17, 10:19 ¨Âí¬ ÂòéáÃáîäìå¼â®ãáîä®®®Àðïâïø®ãïí÷òïôåº > Stuart Clarke wrote: > > I have done some Googling and have yet to find a solution to a problem I > > have. I am trying to decode a Windows filetime value e.g. LoTime,HiTime. > > These values are commonly found in the registry and I have yet to find a > > library in Ruby to deal with them and convert them to a valid date? > > > Any suggestions? > > Google "ruby windows timestamp" (without the quotes) > > The first hit is code. > > The third google hit contains this link:http://msdn.microsoft.com/en-us/library/ms724284(VS.85).aspx > > Combine the two 32-bit values to get a 64-bit value which is the number > of tenths of a microsecond since 1 Jan 1601. > > Google also: > > "site:www.ruby-forum.comactive directory timestamp" > -- > 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.