Article View: pl.comp.lang.python
Article #15806Re: roznica dwoch dat
From: Marcin Mankiewicz
Date: Sun, 18 Jun 2006 19:12
Date: Sun, 18 Jun 2006 19:12
15 lines
1242 bytes
1242 bytes
On Sun, 18 Jun 2006 20:32:33 +0200,
Krzygaj <krzygaj.wytnijto@wp.pl> wrote:
> Witam
> Mam takie pytanie jak uzyskac roznice pomiedzy dwoma datami np:
> 2006/06/13 8:00 a 2006/06/15 15:45, tak aby otrzymac wynik w godzinach?
> Dzieki za pomoc
In [1]:from mx.DateTime import DateFrom
In [2]:(DateFrom('2006-06-13 8:00')-DateFrom('2006-06-15 15:45')).hours
Out[2]:-55.75
pozdrawiam
--
Marcin Mankiewicz
Technical Details
Message-ID:
<slrne9b954.1fd.znyrba@lazaron.cigna>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!newsfeed.silweb.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<e746ca$o0j$1@nemesis.news.tpi.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!newsfeed.silweb.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: Marcin Mankiewicz <znyrba@eden.one.pl> Newsgroups: pl.comp.lang.python Subject: Re: roznica dwoch dat Date: Sun, 18 Jun 2006 19:12:12 +0000 (UTC) Organization: tp.internet - http://www.tpi.pl/ Lines: 15 Message-ID: <slrne9b954.1fd.znyrba@lazaron.cigna> References: <e746ca$o0j$1@nemesis.news.tpi.pl> NNTP-Posting-Host: poczta.cignastu.com.pl X-Trace: nemesis.news.tpi.pl 1150657932 29280 217.96.11.74 (18 Jun 2006 19:12:12 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Sun, 18 Jun 2006 19:12:12 +0000 (UTC) User-Agent: slrn/0.9.8.1 (Linux) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit