[Mono-bugs] [Bug 551128] New: FileInfo Properties return timestamps to the nearest second

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 29 15:39:47 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=551128


           Summary: FileInfo Properties return timestamps to the nearest
                    second
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: nestalk at googlemail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.1.4)
Gecko/20091016 SUSE/3.5.4-1.1.2 Firefox/3.5.4

When i check the lastWriteTime property of a FileInfo object it returns the
time to the nearest second. However when i check the file with the stat command
at the command line i can see the Modify time is held in the filesystem in much
greater precision. 

Reproducible: Always

Steps to Reproduce:
1. gmcs filetest.cs
2. mono filetest.exe filetest.cs
Actual Results:  
The program outputs:
Now - 29/10/2009 19:20:22
Created - 29/10/2009 19:20:14
Modified - 29/10/2009 19:20:14
Accesed - 29/10/2009 19:20:14
Now in ticks - 633924408225480440
Created in ticks - 633924408140000000
Modified in ticks - 633924408140000000
Accesed in ticks - 633924408140000000


Expected Results:  
The timestamps should be more in line with the output of stat e.g.
# stat filetest.cs
  File: `filetest.cs'
  Size: 1525          Blocks: 8          IO Block: 4096   regular file
Device: 803h/2051d    Inode: 246         Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/   neils)   Gid: (  100/   users)
Access: 2009-10-29 19:20:14.740152516 +0000
Modify: 2009-10-29 19:20:14.742152910 +0000
Change: 2009-10-29 19:20:14.809156543 +0000

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list