Re: time.strftime('%m-%d-%Y %H:%m:%S') to log is out of order

2009-07-28 Thread Ben
On Jul 22, 1:04 pm, davidj411 wrote: > i think "Piet van Oostrum" has resolved my issue. > good eyes! Well, he *is* Dutch... -Ben -- http://mail.python.org/mailman/listinfo/python-list

Re: time.strftime('%m-%d-%Y %H:%m:%S') to log is out of order

2009-07-22 Thread Piet van Oostrum
> davidj411 (d) wrote: >d> i never heard of the logging module, but this function seemed simple >d> enough. >d> i assume this link is what you refering to: >d> http://docs.python.org/library/logging.html >d> thanks for the helpful info. i think "Piet van Oostrum" has resolved >d> my issue.

Re: time.strftime('%m-%d-%Y %H:%m:%S') to log is out of order

2009-07-22 Thread davidj411
i never heard of the logging module, but this function seemed simple enough. i assume this link is what you refering to: http://docs.python.org/library/logging.html thanks for the helpful info. i think "Piet van Oostrum" has resolved my issue. good eyes! -- http://mail.python.org/mailman/listinf

Re: time.strftime('%m-%d-%Y %H:%m:%S') to log is out of order

2009-07-21 Thread Simon Forman
On Jul 21, 5:53 pm, davidj411 wrote: > On Jul 21, 5:29 pm, Simon Forman wrote: > > > > > On Jul 21, 5:00 pm, davidj411 wrote: > > > > I am using a recursive function to print the time and a few other > > > things on each pass. ( the function calculates size of file that is > > > being transferre

Re: time.strftime('%m-%d-%Y %H:%m:%S') to log is out of order

2009-07-21 Thread Piet van Oostrum
> davidj411 (d) wrote: >>> >>> > <--code below -->> >>> > print time.strftime('%m-%d-%Y %H:%m:%S') >>> > <--code above -->> >d> here is the function: >d> def log_out(msg,servername='std.out'): >d> print msg >d> open(log_dir + '\\' + servername + ".log",'a').write(servername + "-" >d

Re: time.strftime('%m-%d-%Y %H:%m:%S') to log is out of order

2009-07-21 Thread MRAB
davidj411 wrote: On Jul 21, 5:29 pm, Simon Forman wrote: On Jul 21, 5:00 pm, davidj411 wrote: I am using a recursive function to print the time and a few other things on each pass. ( the function calculates size of file that is being transferred and if not 100 % copied, it waits 20 secs

Re: time.strftime('%m-%d-%Y %H:%m:%S') to log is out of order

2009-07-21 Thread davidj411
On Jul 21, 5:29 pm, Simon Forman wrote: > On Jul 21, 5:00 pm, davidj411 wrote: > > > > > > > I am using a recursive function to print the time and a few other > > things on each pass. ( the function calculates size of file that is > > being transferred and if not 100 % copied, it waits 20 secs an

Re: time.strftime('%m-%d-%Y %H:%m:%S') to log is out of order

2009-07-21 Thread Jon Clements
On 21 July, 22:38, Piet van Oostrum wrote: > > davidj411 (d) wrote: > >d> I am using a recursive function to print the time and a few other > >d> things on each pass. ( the function calculates size of file that is > >d> being transferred and if not 100 % copied, it waits 20 secs and checks >

Re: time.strftime('%m-%d-%Y %H:%m:%S') to log is out of order

2009-07-21 Thread Piet van Oostrum
> davidj411 (d) wrote: >d> I am using a recursive function to print the time and a few other >d> things on each pass. ( the function calculates size of file that is >d> being transferred and if not 100 % copied, it waits 20 secs and checks >d> again). >d> i would expect the time to be correc

Re: time.strftime('%m-%d-%Y %H:%m:%S') to log is out of order

2009-07-21 Thread Simon Forman
On Jul 21, 5:00 pm, davidj411 wrote: > I am using a recursive function to print the time and a few other > things on each pass. ( the function calculates size of file that is > being transferred and if not 100 % copied, it waits 20 secs and checks > again). > > i would expect the time to be correc

Re: time.strftime('%m-%d-%Y %H:%m:%S') to log is out of order

2009-07-21 Thread Jon Clements
On 21 July, 22:00, davidj411 wrote: > I am using a recursive function to print the time and a few other > things on each pass. ( the function calculates size of file that is > being transferred and if not 100 % copied, it waits 20 secs and checks > again). > > i would expect the time to be correct

time.strftime('%m-%d-%Y %H:%m:%S') to log is out of order

2009-07-21 Thread davidj411
I am using a recursive function to print the time and a few other things on each pass. ( the function calculates size of file that is being transferred and if not 100 % copied, it waits 20 secs and checks again). i would expect the time to be correct anytime it is used: <--code below -->> print t