Re: FTP Date Format Function

2007-06-15 Thread samuraisam
On Jun 14, 10:53 pm, billiejoex <[EMAIL PROTECTED]> wrote: > On 14 Giu, 19:25, samuraisam <[EMAIL PROTECTED]> wrote: > > > > > FTP LST/LIST/NLST date field formatting function for all those seekers > > out there... > > > import time > > import datetime > > > def ftpdateformat(value): > > """For

Re: FTP Date Format Function

2007-06-14 Thread billiejoex
On 14 Giu, 19:25, samuraisam <[EMAIL PROTECTED]> wrote: > FTP LST/LIST/NLST date field formatting function for all those seekers > out there... > > import time > import datetime > > def ftpdateformat(value): > """Formats dates from most FTP servers""" > if ":" in value: # within 6 months >

Re: FTP Date Format Function

2007-06-14 Thread MC
Thank. -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

FTP Date Format Function

2007-06-14 Thread samuraisam
FTP LST/LIST/NLST date field formatting function for all those seekers out there... import time import datetime def ftpdateformat(value): """Formats dates from most FTP servers""" if ":" in value: # within 6 months return datetime.datetime( *time.strptime( # have to gu