[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] Fwd: How to convert days to year,month & days
From: "KONTRA, Gergely" <pihentagy () gmail ! com>
Date: 2011-02-21 18:15:21
Message-ID: AANLkTik-GFAosvrzRnJi-vME387VvxydjSxyuUsfPcpX () mail ! gmail ! com
[Download RAW message or body]
Why not use datetime.timedelta?
[interactive console]
>>> import datetime
>>> a = datetime.datetime.now()
>>> b = datetime.datetime.now()
>>> b-a
datetime.timedelta(0, 5, 156000)
+-[ Gergely Kontra <pihentagy@gmail.com> ]------------------+
| |
| Mobile:(+36 20)356 9656 |
| |
+- "Olyan lángész vagyok, hogy poroltóval kellene járnom!" -+
On Mon, Feb 14, 2011 at 18:46, alhad deshpande <alhaddeshpande@gmail.com> wrote:
> i have a date of joining of an employee and i want to know till current date
> how many MONTHS he/she has worked in the company..
>
> Can someone plz guide me how can i convert days to MONTHS for above
> requirement..
>
> Thanx
> ad3d
> _______________________________________________
> PyQt mailing list PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic