On Wed, 8 Oct 2008 06:49:10 -0700 (PDT), lookon <[EMAIL PROTECTED]> wrote:
I have two string like "2007-03-27T08:54:43+08:00 "
how do I get the hours between these two time(string format)?

That's ISO 8601 datetime format.  You might use epsilon.extime:

   >>> from epsilon.extime import Time
   >>> Time.fromISO8601TimeAndDate("2008-10-08T14:05:16.029246+00:00") - 
Time.fromISO8601TimeAndDate("2007-03-27T08:54:43+08:00")
   datetime.timedelta(561, 47433, 29246)

Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to