TypeError in date_parse.py
John Gordon
gordon at panix.com
Wed Sep 11 12:15:01 EDT 2013
In <09d39e02-c741-4a46-b34f-551e11118e7b at googlegroups.com> pestrella at gmail.com writes:
> =============================
> # Compute duration for this item.
> duration = None
> if end_timestamp and start_timestamp:
> start_datetime = datetime.fromtimestamp(float(start_timestamp))
> end_datetime = datetime.fromtimestamp(float(end_timestamp))
> duration = end_datetime - start_datetime
> =============================
What is the type and value of start_timestamp and end_timestamp?
--
John Gordon A is for Amy, who fell down the stairs
gordon at panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
More information about the Python-list
mailing list