On Mon, 2012-10-29 at 16:13 -0700, noydb wrote:
> All,
> I need help with a date and time comparison.
> Say a user enters a date-n-time and a file on disk. I want to compare
> the date and time of the file to the entered date-n-time; if the file
> is newer than the entered date-n-time, add the fil
Gary Herron wrote:
> On 10/29/2012 04:13 PM, noydb wrote:
> > All,
> >
> > I need help with a date and time comparison.
> >
> > Say a user enters a date-n-time and a file on disk. I want to compare the
> > date and time of the file to the
> entered date-n-time; if the file is newer than the enter
On 10/30/2012 12:20 AM, noydb wrote:
> On Monday, October 29, 2012 11:11:55 PM UTC-4, Dave Angel wrote:
>> On 10/29/2012 10:13 PM, noydb wrote:
>>
>>> I guess I get there eventually!
>>
>>>
>>
>>
>
> okay, I see.
> But for the user supplied date... I'm not sure of the format just yet...
> test
On Tue, Oct 30, 2012 at 3:20 PM, noydb wrote:
> But for the user supplied date... I'm not sure of the format just yet...
> testing with a string for now (actual date-date might be possible, tbd
> later), so like '10292012213000' (oct 29, 2012 9:30pm). How would you get
> that input into a form
On Monday, October 29, 2012 11:11:55 PM UTC-4, Dave Angel wrote:
> On 10/29/2012 10:13 PM, noydb wrote:
>
> > I guess I get there eventually!
>
> > This seems to work
>
> >
>
> > pdf_timeStamp =
> > time.strftime("%m%d%y%H%M%S",time.localtime(os.path.getmtime(pdf)))
>
> > intermedia
On 2012-10-30 03:11, Dave Angel wrote:
On 10/29/2012 10:13 PM, noydb wrote:
I guess I get there eventually!
This seems to work
pdf_timeStamp =
time.strftime("%m%d%y%H%M%S",time.localtime(os.path.getmtime(pdf)))
intermediateTime = time.strptime(pdf_timeStamp, "%m%d%y%H%M%S")
pdfFile
On 10/29/2012 10:13 PM, noydb wrote:
> I guess I get there eventually!
> This seems to work
>
> pdf_timeStamp =
> time.strftime("%m%d%y%H%M%S",time.localtime(os.path.getmtime(pdf)))
> intermediateTime = time.strptime(pdf_timeStamp, "%m%d%y%H%M%S")
> pdfFile_compareTime = time.mktime(
I guess I get there eventually!
This seems to work
pdf_timeStamp =
time.strftime("%m%d%y%H%M%S",time.localtime(os.path.getmtime(pdf)))
intermediateTime = time.strptime(pdf_timeStamp, "%m%d%y%H%M%S")
pdfFile_compareTime = time.mktime(intermediateTime)
(and I'll do the same to the us
if I do time.time() I get 1351562187.757, do it again I get 1351562212.2650001
--- so I can compare those, the latter is later then the former. Good. SO how
do I turn pdf_timeStamp (a string) above into time in this (as from
time.time()) format? Am I on the right track -- is that the way to d
Thanks, I did find this...
pdf_timeStamp =
time.strftime("%m%d%y%H%M%S",time.localtime(os.path.getmtime(pdf)))
>> pdf_timestamp
>> '102909133000'
... but now how to do the comparison? Cannot just do a raw string comparison,
gotta declare it a date
--
http://mail.python.org/mailman/listinfo/p
On 2012-10-30 00:04, Gary Herron wrote:
On 10/29/2012 04:13 PM, noydb wrote:
All,
I need help with a date and time comparison.
Say a user enters a date-n-time and a file on disk. I want to compare the date
and time of the file to the entered date-n-time; if the file is newer than the
entere
On 10/29/2012 04:13 PM, noydb wrote:
All,
I need help with a date and time comparison.
Say a user enters a date-n-time and a file on disk. I want to compare the date
and time of the file to the entered date-n-time; if the file is newer than the
entered date-n-time, add the file to a list to
All,
I need help with a date and time comparison.
Say a user enters a date-n-time and a file on disk. I want to compare the date
and time of the file to the entered date-n-time; if the file is newer than the
entered date-n-time, add the file to a list to process.
How best to do? I have looke
13 matches
Mail list logo