Finally got it:
datetimeTuple = time.strptime(XMLVALUES, "%Y-%m-%d %H:%M:%S");
setattr(OBJ,XMLFIELD,datetime.datetime
(datetimeTuple.tm_year,
datetimeTuple.tm_mon,
datetimeTuple.tm_mday,
datetimeTuple.tm_hour,
datetimeTuple.tm_min,
datetimeTuple.tm_sec))
Is there a shorter way? This seems very verbose.
Thanks
Neal Walters
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---