|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Reading int64 from file & converting to DateTimeHi, I have a binary file that I'm trying to process with VB.net 2003
The file includes a timestamp that was written to the file using the following code: With m_Writer .Write(DateTime.Now.Ticks) 'Time Stamp End With How I do read that timestamp and get it into a usable form? I can read it using myInt64 = BinaryReader.ReadInt64 but I can't seem to do anything with it once I've read it TIA, Paul myInt64 = BinaryReader.ReadInt64
Dim d As New Date(myInt64) Debug.WriteLine(d) <clackman***@hotmail.com> wrote in message Show quoteHide quote news:1165584806.139120.305390@79g2000cws.googlegroups.com... > Hi, I have a binary file that I'm trying to process with VB.net 2003 > The file includes a timestamp that was written to the file using the > following code: > > With m_Writer > .Write(DateTime.Now.Ticks) 'Time Stamp > End With > > How I do read that timestamp and get it into a usable form? > > I can read it using > myInt64 = BinaryReader.ReadInt64 > but I can't seem to do anything with it once I've read it > > TIA, > Paul > Mudhead wrote:
> myInt64 = BinaryReader.ReadInt64 When you say it like that it seems so obvious :)> Dim d As New Date(myInt64) > Debug.WriteLine(d) > Thanks a lot!
Interlocked.Add Not Thread Safe with Longs on a 32bit system
Data Relations with DataTable Class Data access layer for SQL Server & MS Access Installing a windows service simple question Trigger a Help event. Is it possible to display images on desktop (not as an icon)? vbQuestion error Re: Turn off deprecated warnings? Re: Which do you prefer? |
|||||||||||||||||||||||