On Aug 24, 4:16 pm, Alex Willmer wrote:
> On Aug 24, 9:45 pm, m_ahlenius wrote:
>
>
>
> > whereas this fails:
> > myStrA = 'Sun Aug 22 19:03:06 PDT'
> > gTimeA = strptime( myStrA, '%a %b %d %H:%M:%S %Z')
> > print "gTimeA = ",gTi
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'
it
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 compressi
On Aug 20, 9:25 am, Peter Otten <__pete...@web.de> wrote:
> m_ahlenius wrote:
> > On Aug 20, 6:57 am, m_ahlenius wrote:
> >> On Aug 20, 5:34 am, Dave Angel wrote:
>
> >> > m_ahlenius wrote:
> >> > > Hi,
>
> >> > > I am re
On Aug 20, 9:10 am, Dave Angel wrote:
> m_ahlenius wrote:
> > On Aug 20, 6:57 am, m_ahlenius wrote:
>
> >> On Aug 20, 5:34 am, Dave Angel wrote:
>
> >>> m_ahlenius wrote:
>
> >>>> Hi,
>
> >>>> I am relatively new to doing s
On Aug 20, 6:57 am, m_ahlenius wrote:
> On Aug 20, 5:34 am, Dave Angel 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 file
On Aug 20, 5:34 am, Dave Angel 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
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 som
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
On Feb 7, 5:01 pm, Tim Chase 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 1st and last lines and
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 o
11 matches
Mail list logo