<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Courier New, monospace" size="2">
<div>Zdravim,</div>
<div> </div>
<div>Mam problem pri nastaveni modify time souboru na hodnotu odpovidajici nejakemu letnimu casu. Cas nastavuju funkci os.utime():</div>
<div> </div>
<div>>>> os.utime('2007_11_26\IMG_1944.JPG',(1178445665.0,1178445665.0))</div>
<div>>>> os.path.getmtime('2007_11_26\IMG_1944.JPG')</div>
<div>1178445665.0</div>
<div>>>> time.localtime(1178445665.0)</div>
<div>(2007, 5, 6, 12, 1, 5, 6, 126, 1)</div>
<div>>>> time.ctime(1178445665.0)</div>
<div>'Sun May 06 <b>12:01</b>:05 2007'</div>
<div> </div>
<div> </div>
<div> </div>
<div>Windows (i dosacky dir) zobrazuji u uvedeneho souboru cas <b>11:01, tedy o hodinu mene:</b></div>
<div> </div>
<div>D:\Projects\python\MediaFiles_tools\2007_11_26>dir</div>
<div> Volume in drive D is Second</div>
<div> Volume Serial Number is 365D-17C7</div>
<div> </div>
<div> Directory of D:\Projects\python\MediaFiles_tools\2007_11_26</div>
<div> </div>
<div>13.01.2009 15:27 <DIR> .</div>
<div>13.01.2009 15:27 <DIR> ..</div>
<div>06.05.2007 <b>11:01</b> 960 371 IMG_1944.JPG</div>
<div> 1 File(s) 960 371 bytes</div>
<div> 2 Dir(s) 7 037 947 904 bytes free</div>
<div> </div>
<div> </div>
<div>Pritom v Linuxu je vse OK a navic klon unixoveho programu ls pro windows taky zobrazuje spravnou hodnotu:</div>
<div> </div>
<div>D:\Projects\python\MediaFiles_tools\2007_11_26>ls --full-time</div>
<div>total 940</div>
<div style="padding-right: -74pt; ">-rwx------+ 1 lanskym mkpasswd 960371 2007-05-06 <b>12:01</b>:05.000000000 +0200 IMG_19</div>
<div>44.JPG</div>
<div> </div>
<div> </div>
<div>Milan</div>
<div> </div>
<div> </div>
</font>
<br clear=all> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
</body>
</html>