[XML-SIG] [ pyxml-XBEL-1665664 ] parse time problem

SourceForge.net noreply at sourceforge.net
Wed Feb 21 23:42:23 CET 2007


XBEL item #1665664, was opened at 2007-02-21 22:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=707658&aid=1665664&group_id=6473

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Problem
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Sérgio Monteiro Basto (sergiomb)
Assigned to: Nobody/Anonymous (nobody)
Summary: parse time problem 

Initial Comment:
I begin to report problem on python 
(https://sourceforge.net/tracker/index.php?func=detail&aid=1656559&group_id=5470&atid=105470)

but this is a specif of file ./site-packages/_xmlplus/utils/iso8601.py 

 gmt = __extract_date(m) + __extract_time(m) + (0, 0, 0) this is wrong 
My sugestion is:  
 gmt = __extract_date(m) + __extract_time(m)
 gmt = datetime(gmt).timetuple()

(0,0,0) zero for week of day, zero for day of the year and zero isdst is the error here. 

timetuple calculate this last 3 numbers well. 
and my problem is gone !

references http://docs.python.org/lib/module-time.html: 
0  	tm_year  	(for example, 1993)
1 	tm_mon 	        range [1,12]
2 	tm_mday 	range [1,31]
3 	tm_hour 	range [0,23]
4 	tm_min 	        range [0,59]
5 	tm_sec 	        range [0,61]; see (1) in strftime() description
6 	tm_wday 	range [0,6], Monday is 0
7 	tm_yday 	range [1,366]
8 	tm_isdst 	0, 1 or -1; see below




----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=707658&aid=1665664&group_id=6473


More information about the XML-SIG mailing list