<br><font size=2 face="sans-serif">Vlastne som zistil az teraz ze to ide.
</font>
<br><font size=2 face="sans-serif">Predtym som to robil otrocky, t.j. prevadzal
som datum do ciselneho formatu yyyymmdd</font>
<br><font size=2 face="sans-serif">>>> datum_1=time.strptime('18.1.2006',
"%d.%m.%Y")</font>
<br><font size=2 face="sans-serif">>>> datum_2=time.strptime('18.03.2006',
"%d.%m.%Y")</font>
<br><font size=2 face="sans-serif">>>> datum_1_int = string.atoi(time.strftime("%Y%m%d",datum_1))
</font>
<br><font size=2 face="sans-serif">>>> datum_2_int = string.atoi(time.strftime("%Y%m%d",datum_2))
</font>
<br><font size=2 face="sans-serif">>>> datum_1_int</font>
<br><font size=2 face="sans-serif">20060118</font>
<br><font size=2 face="sans-serif">>>> datum_2_int</font>
<br><font size=2 face="sans-serif">20060318</font>
<br>
<br><font size=2 face="sans-serif">--ale zato moze COBOL..:-)</font>
<br>
<br><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Leos Pol <leos@radiante-corp.com></b>
</font>
<br><font size=1 face="sans-serif">Sent by: python-bounces@py.cz</font>
<p><font size=1 face="sans-serif">20.10.2006 12:22</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Konference PyCZ <python@py.cz></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">Konference PyCZ <python@py.cz></font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">Re: [python] Převod datumu
a času</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Roman Miklos wrote:<br>
><br>
> Ono to ide aj s tou Blazenkou, alebo sa mylim?<br>
><br>
> >>> datum_1=time.strptime('18.1.2006', "%d.%m.%Y")<br>
> >>> datum_2=time.strptime('18.03.2006', "%d.%m.%Y")<br>
> >>> datum_1 < datum_2<br>
> True<br>
> >>> datum_2 < datum_1<br>
> False<br>
><br>
> >>>#reprezentacia datumov<br>
> >>> datum_1<br>
> (2006, 1, 18, 0, 0, 0, 2, 18, -1)<br>
> >>> datum_2<br>
> (2006, 3, 18, 0, 0, 0, 5, 77, -1)<br>
> >>><br>
><br>
Proto jsem pouzil to same uz v moji reakci.<br>
Leo<br>
<br>
BTW: pro tento email jsem pouzil -> Send in Plain Text only<br>
_______________________________________________<br>
Python mailing list<br>
Python@py.cz<br>
http://www.py.cz/mailman/listinfo/python<br>
</tt></font>
<br><font size=2 face="sans-serif"><br>
Mgr. Ing. Roman MIKLÓ© <br>
Prvá stavebná sporiteµňa a.s. <br>
Bajkalská 30, P. O. Box 48 <br>
829 48 Bratislava 25 <br>
Tel.: +421/ 2 / 582 31 174 <br>
Fax: +421/ 2 / 582 31 109 <br>
</font>