<div>I've read the part about these being variable</div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><span class="Apple-style-span" style="font-family: sans-serif; font-size: 19px; line-height: 24px; "><p class="first admonition-title" style="margin-top: 0px; margin-right: 10px; margin-bottom: 5px; margin-left: 0px; font-weight: bold; display: inline; text-align: justify; line-height: 24px; ">
Note</p></span> <p class="last" style="margin-top: 0px; text-align: justify; line-height: 24px; margin-bottom: 5px; display: inline; ">The exact meaning and resolution of the <tt class="xref docutils literal" style="background-color: rgb(214, 214, 214); padding-top: 0px; padding-right: 1px; padding-bottom: 0px; padding-left: 1px; font-size: 0.95em; font-weight: bold; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span class="pre">st_atime</span></tt>, <tt class="xref docutils literal" style="background-color: rgb(214, 214, 214); padding-top: 0px; padding-right: 1px; padding-bottom: 0px; padding-left: 1px; font-size: 0.95em; font-weight: bold; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span class="pre">st_mtime</span></tt>, and<tt class="xref docutils literal" style="background-color: rgb(214, 214, 214); padding-top: 0px; padding-right: 1px; padding-bottom: 0px; padding-left: 1px; font-size: 0.95em; font-weight: bold; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span class="pre">st_ctime</span></tt> members depends on the operating system and the file system. For example, on Windows systems using the FAT or FAT32 file systems, <tt class="xref docutils literal" style="background-color: rgb(214, 214, 214); padding-top: 0px; padding-right: 1px; padding-bottom: 0px; padding-left: 1px; font-size: 0.95em; font-weight: bold; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span class="pre">st_mtime</span></tt>has 2-second resolution, and <tt class="xref docutils literal" style="background-color: rgb(214, 214, 214); padding-top: 0px; padding-right: 1px; padding-bottom: 0px; padding-left: 1px; font-size: 0.95em; font-weight: bold; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-position: initial initial; background-repeat: initial initial; "><span class="pre">st_atime</span></tt> has only 1-day resolution. See your operating system documentation for details.</p>
</div></blockquote><div style="text-align: justify;"><font class="Apple-style-span" face="sans-serif" size="6"><span class="Apple-style-span" style="font-size: 19px; line-height: 24px;"><br></span></font></div>However, given the fact that NTFS supports 100ns resolution, the results here just look wrong.  st_ctime doesn't show a different time until there is a ~15 second gap in the creation times (then however is shows the full time gap)  Notice<div>
<br></div><div>Linux doesn't do this, the times look normal.  Seems strange to break cross platform compatibility like this...<br><div><br></div><div><br><div>Here is the test code:<div><br></div><div><div>import os</div>
<div>import time</div><div><br></div><div>def runtest(sleepSecs):</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>print "Sleeping: " + str(sleepSecs)</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">       </span>fA = open("A", "w")</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>fA.close();</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>if sleepSecs:</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>time.sleep(sleepSecs)</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>fB = open("B", "w")</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>fB.close();</div><div><span class="Apple-tab-span" style="white-space:pre">  </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>info = os.stat("A")</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>print "A:",info.st_ctime, info.st_mtime, info.st_atime</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>info = os.stat("B")</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>print "B:",info.st_ctime, info.st_mtime, info.st_atime</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">     </span>os.remove("A")</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>os.remove("B")</div></div><div><br>
</div><div><br></div><div>When run under Win7 on NTFS</div><div><br></div><div><div>for i in range(1,20):</div><div>  runtest(i)</div></div><div><br></div><div><div>>>> for i in range(0,20):</div><div>...   stattest.runtest(i)</div>
<div>...</div><div>Sleeping: 0</div><div>A: 1286770829.44 1286770829.44 1286770829.44</div><div>B: 1286770829.44 1286770829.44 1286770829.44</div><div>Sleeping: 1</div><div>A: 1286770829.44 1286770829.44 1286770829.44</div>
<div>B: 1286770829.44 1286770830.44 1286770830.44</div><div>Sleeping: 2</div><div>A: 1286770829.44 1286770830.45 1286770830.45</div><div>B: 1286770829.44 1286770832.45 1286770832.45</div><div>Sleeping: 3</div><div>A: 1286770829.44 1286770832.46 1286770832.46</div>
<div>B: 1286770829.44 1286770835.46 1286770835.46</div><div>Sleeping: 4</div><div>A: 1286770829.44 1286770835.47 1286770835.47</div><div>B: 1286770829.44 1286770839.47 1286770839.47</div><div>Sleeping: 5</div><div>A: 1286770829.44 1286770839.48 1286770839.48</div>
<div>B: 1286770829.44 1286770844.48 1286770844.48</div><div>Sleeping: 6</div><div>A: 1286770829.44 1286770844.49 1286770844.49</div><div>B: 1286770829.44 1286770850.49 1286770850.49</div><div>Sleeping: 7</div><div>A: 1286770829.44 1286770850.5 1286770850.5</div>
<div>B: 1286770829.44 1286770857.5 1286770857.5</div><div>Sleeping: 8</div><div>A: 1286770829.44 1286770857.51 1286770857.51</div><div>B: 1286770829.44 1286770865.51 1286770865.51</div><div>Sleeping: 9</div><div>A: 1286770829.44 1286770865.52 1286770865.52</div>
<div>B: 1286770829.44 1286770874.52 1286770874.52</div><div>Sleeping: 10</div><div>A: 1286770829.44 1286770874.52 1286770874.52</div><div>B: 1286770829.44 1286770884.53 1286770884.53</div><div>Sleeping: 11</div><div>A: 1286770829.44 1286770884.56 1286770884.56</div>
<div>B: 1286770829.44 1286770895.56 1286770895.56</div><div>Sleeping: 12</div><div>A: 1286770829.44 1286770895.57 1286770895.57</div><div>B: 1286770829.44 1286770907.57 1286770907.57</div><div>Sleeping: 13</div><div>A: 1286770829.44 1286770907.58 1286770907.58</div>
<div>B: 1286770829.44 1286770920.58 1286770920.58</div><div>Sleeping: 14</div><div>A: 1286770829.44 1286770920.59 1286770920.59</div><div>B: 1286770829.44 1286770934.59 1286770934.59</div><div><b>Sleeping: 15</b></div><div>
<b>A: 1286770829.44 1286770934.6 1286770934.6</b></div><div><b>B: 1286770949.6 1286770949.6 1286770949.6</b></div><div>Sleeping: 16</div><div>A: 1286770829.44 1286770949.61 1286770949.61</div><div>B: 1286770965.61 1286770965.61 1286770965.61</div>
<div>Sleeping: 17</div><div>A: 1286770829.44 1286770965.62 1286770965.62</div><div>B: 1286770982.62 1286770982.62 1286770982.62</div><div>Sleeping: 18</div><div>A: 1286770829.44 1286770982.63 1286770982.63</div><div>B: 1286771000.63 1286771000.63 1286771000.63</div>
<div>Sleeping: 19</div><div>A: 1286770829.44 1286771000.63 1286771000.63</div><div>B: 1286771019.63 1286771019.63 1286771019.63</div></div></div></div></div>