[DB-SIG] dbiDate - help urgently needed

Jeff Sacksteder jeff at jdfiles.org
Mon Jun 2 21:15:51 EDT 2003


Chris Cogdon wrote:

>
> On Monday, Jun 2, 2003, at 16:40 US/Pacific, Jeff Sacksteder wrote:
>
>> This is working but seems suboptimal. Is this the most correct way to 
>> go about it?
>>
>>        for row_item in row:
>>            if type(row_item) is StringType:
>>                clean_item = clean_str(row_item)
>>            elif type(row_item) == type(dbi.dbiDate(0)):
>
>
> Try using
>
>>  elif type(row_item) == dbi.DateTimeType
>
>
> instead (not tried myself. This is coming from Lloyd's information)
>
>
Seems more logical. Thank you all for your assistance!




More information about the DB-SIG mailing list