Hi,
perhaps I missed this posted already somewhere.
I am got a program which reads time stings from some devices which
are providing the time zones. I have to take this into account when
doing some epoch time calculations.
When I run the following code with the time zone string set to 'GMT'
On Aug 24, 4:16 pm, Alex Willmer a...@moreati.org.uk wrote:
On Aug 24, 9:45 pm, m_ahlenius ahleni...@gmail.com wrote:
whereas this fails:
myStrA = 'Sun Aug 22 19:03:06 PDT'
gTimeA = strptime( myStrA, '%a %b %d %H:%M:%S %Z')
print gTimeA = ,gTimeA
ValueError: time data 'Sun Aug 22 19
On Aug 20, 5:34 am, Dave Angel da...@ieee.org wrote:
m_ahlenius wrote:
Hi,
I am relatively new to doing serious work in python. I am using it to
access a large number of log files. Some of the logs get corrupted
and I need to detect that when processing them. This code seems to
work
On Aug 20, 6:57 am, m_ahlenius ahleni...@gmail.com wrote:
On Aug 20, 5:34 am, Dave Angel da...@ieee.org wrote:
m_ahlenius wrote:
Hi,
I am relatively new to doing serious work in python. I am using it to
access a large number of log files. Some of the logs get corrupted
and I
On Aug 20, 9:10 am, Dave Angel da...@ieee.org wrote:
m_ahlenius wrote:
On Aug 20, 6:57 am, m_ahlenius ahleni...@gmail.com wrote:
On Aug 20, 5:34 am, Dave Angel da...@ieee.org wrote:
m_ahlenius wrote:
Hi,
I am relatively new to doing serious work in python. I am using it to
access
On Aug 20, 9:25 am, Peter Otten __pete...@web.de wrote:
m_ahlenius wrote:
On Aug 20, 6:57 am, m_ahlenius ahleni...@gmail.com wrote:
On Aug 20, 5:34 am, Dave Angel da...@ieee.org wrote:
m_ahlenius wrote:
Hi,
I am relatively new to doing serious work in python. I am using
On Aug 20, 12:55 pm, Peter Otten __pete...@web.de wrote:
m_ahlenius wrote:
I am using Python 2.6.5.
Unfortunately I don't have other versions installed so its hard to
test with a different version.
As for the log compression, its a bit hard to test. Right now I may
process 100
Hi,
I am relatively new to doing serious work in python. I am using it to
access a large number of log files. Some of the logs get corrupted
and I need to detect that when processing them. This code seems to
work for quite a few of the logs (all same structure) It also
correctly identifies
Hi,
I have a weird question about tuples. I am getting some dates from a
mysql db, using the mysqldb interface. I am doing a standard query
with several of the fields are datetime format in mysql.
When I retrieve and print them in python, they look fine.
eg.
storeddate = 2010-02-07 12:03:41
Hi,
I have a number of relatively large number *tar.gzip files to
process. With the py module tarfile, I see that I can access and
extract them, one at a time to a temporary dir, but that of course
takes time.
All that I need to do is to read the first and last lines of each file
and then move
On Feb 7, 5:01 pm, Tim Chase python.l...@tim.thechases.com wrote:
Is there a way to do this, without decompressing each file to a temp
dir? Like is there a method using some tarfile interface adapter to
read a compressed file? Otherwise I'll just access each file, extract
it, grab the
11 matches
Mail list logo