[Python-Dev] Subsecond time stamps

Paul Svensson paul-python@svensson.org
Fri, 6 Sep 2002 10:31:25 -0400 (EDT)


On 6 Sep 2002, Martin v. Löwis wrote:

>A number of systems provide subsecond time stamp resolution for
>files. In particular:
>
>- NFS v3 has nanosecond time stamps.
>
>- Solaris 9 has nanosecond time stamps in stat(2), and microsecond
>  time stamps in utimes(2). In addition, they have microsecond time
>  stamps on ufs. It appears that other Unices have also extended
>  stat(2), as does OS X.
>
>- NTFS has 100ns resolution for time stamps.

(---)

>C. Make st_mtime a floating point number. This won't offer nanosecond
>   resolution, as C doubles are not dense enough.

This seems to me the most Pythonic way.
Are C doubles dense enough to offer 100 ns resolution ?

	/Paul