[New-bugs-announce] [issue11993] Is it desired to distinguish new files from old with sub-second resolution?

John S. Gruber report at bugs.python.org
Wed May 4 04:23:52 CEST 2011


New submission from John S. Gruber <johnsgruber at gmail.com>:

This report is meant to prompt discussion, if desired, on the advisability of distinguishing new files from old using subsecond data. (It isn't clear to me that it is important to do this.)

Some file systems keep sub-second modification times, but the number of seconds since the epoch grows to a very large number, and given the limited number of significant bits in floating point numbers, it's important to carry out this comparison carefully (or use some new integer data) so newly created files don't appear to be older than their source files due to rounding and other conversion anomalies. Current floats don't have the precision to hold both the number of seconds since the epoch and a nanosecond precision fractional second.

----------
assignee: tarek
components: Distutils2
messages: 135090
nosy: alexis, eric.araujo, jsjgruber, tarek
priority: normal
severity: normal
status: open
title: Is it desired to distinguish new files from old with sub-second resolution?
type: feature request
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11993>
_______________________________________


More information about the New-bugs-announce mailing list