Re: File Date and Time stamp after FileStream.Write(), C#



The time stamp is handled by the OS's File System Driver, so the CF has
nothing to do with how it gets stamped.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com


"Neville Lang" <neville@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:Oe2ykJ0mHHA.960@xxxxxxxxxxxxxxxxxxxxxxx
Hi all,

I have just noticed in my CF app on a Pocket PC (PPC) that when I create a
new file and write some bytes to it on the PPC using FileStream's
FileMode.CreateNew (and Create), FileAccess.Write, the date and time stamp
displayed in the Modified column in Windows Explorer on the desktop,
accessing the Mobile Device, suggests that the Modified time is set for UT
and not my local time. I have just noticed this and so do not know whether
it has occurred in the past.

I automatically thought that the date and time stamp would use the PPC's
current date and time (I seem to remember that it did so in the past) but
evidently not.

Any ideas?

My app is currently using CFv1 on VS2005. I will be changing it to CFv2
soon.


Regards,
Neville Lang




.



Relevant Pages

  • Re: File Date and Time stamp after FileStream.Write(), C#
    ... newly created files had the time stamp of the local time. ... I have just noticed in my CF app on a Pocket PC (PPC) that when I create ... stamp displayed in the Modified column in Windows Explorer on the ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: file handling
    ... Chris Tacke, Embedded MVP ... I have created a file using createfile, ... think is the file is labelled ??????, it has data in it, the time stamp ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: File Date and Time stamp after FileStream.Write(), C#
    ... they were time stamp dependent and were deployed to consumers that where ... what its time stamp is, then save the necessary "adjustment" somewhere for ... Chris Tacke, Embedded MVP ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: File Date and Time stamp after FileStream.Write(), C#
    ... newly created files had the time stamp of the local time. ... I have just noticed in my CF app on a Pocket PC (PPC) that when I create ... stamp displayed in the Modified column in Windows Explorer on the ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: File Date and Time stamp after FileStream.Write(), C#
    ... Or put the time stamp *in* the file data. ... Chris Tacke, Embedded MVP ...
    (microsoft.public.dotnet.framework.compactframework)

Loading