Thanks for the replies.
time.strptime() is able to parse the string if the timezone is local or GMT
or UTC. Is there a file of timezones and corresponding time offsets that I
can use to build the dictionary?
thanks
Ravi.
>>> import time
>>> time.strptime("Mon Feb 11 01:34:52 CST 2008", "%a %b %d
Yes, the problem is, that these guys are anyway forced to have
Python/Erlang developers on board, because of external opensource
components they need to maintain.
Am Donnerstag, den 06.03.2008, 23:54 + schrieb Alan Gauld:
> Actually I'm with the lead here.
>
> The cost of developing a new fea
On 07/03/2008, Ravi Kondamuru <[EMAIL PROTECTED]> wrote:
> I have a log file that prints the date and time in the following format:
> Mon Feb 11 01:34:52 CST 2008
> I am expecting multiple timezone entries (eg: PST, PDT and GMT) on the
> system running in America/Los Angeles time zone.
> I am look
"Ravi Kondamuru" <[EMAIL PROTECTED]> wrote
> I have a log file that prints the date and time in the following
> format:
> Mon Feb 11 01:34:52 CST 2008
> I looked at datetime, but it seems slightly complex to work with non
> GMT
> timestamps.
Try the basic time module.
It has gmttime functions
"Kent Johnson" <[EMAIL PROTECTED]> wrote
> My experience, moving from C++ to Java to Python as the language I
> use
> every day at work:
I did much the same journey but decided I hated Java so much
I kind of bypassed it and only once used it on a real project. Instead
I became an architect/desig
> I looked at datetime, but it seems slightly complex to work with non GMT
> timestamps.
>
> Any pointers?
you may also want to take a look at dateutil http://labix.org/python-dateutil
i think the online docs has a section devoted to just timestamp parsing.
hope this helps!
-- wesley
- - - - - -
Hi,
I have a log file that prints the date and time in the following format:
Mon Feb 11 01:34:52 CST 2008
I am expecting multiple timezone entries (eg: PST, PDT and GMT) on the
system running in America/Los Angeles time zone.
I am looking for a way to internally store all the different timezone
en
> In commercial practice sometimes "political" considerations make for
> crazy decisions, e.g. witnessed by me:
> 1.) a new web service needs to be developed.
> 2.) the policy of the company is that all developers need to know C
++/Java.
> snipped... desire to use Python/Erlang
> 5.) The project l
> Now coming back to your question, that you want a non-changeable
> name,
> well, one can create such a beast, e.g.:
>
> def constant(value):
> ...
>class Test(object):
> const_a = constant(123)
> This creates a member that can only be fetched, but not set or
> deleted.
Only within constant
On Thu, Mar 6, 2008 at 10:51 AM, Tiago Katcipis <[EMAIL PROTECTED]> wrote:
> Saddly the lab where i
> work only develops on c++ for now... but everything that i can choose i will
> develop with python,
This is not an insurmountable problem. There are various technologies
which allow you to use C++
so far im starting to feel all what you have said. Im using python to
implement some works on university and im felling that everything is high
level, easy to use, and far easier than c++ and even java. java is less
complicated than c++ but cant be compared with the simplicity of python
code. And t
Am Donnerstag, den 06.03.2008, 08:35 -0500 schrieb Kent Johnson:
> C++ is extremely complex. The good side of this is it gives you
> tremendous control - final, const, pass by reference or value, memory
> allocation, etc, etc. The bad side is that it is a lot to think about -
> should this para
Well, as a philosophical argument, the public/private classification is
broken by design.
Why?
Assuming that one considers the "protection" part as useful (which
experience with dynamic languages like Python suggest is not axiomatic),
because it forces you to map all roles of a given class to a f
Tiago Katcipis wrote:
> thanks for the help Andreas, i dont really need that much a const so i
> wont do anything like that to have a const like data. I am very used to
> java and c++, thats why i always used acess modifier, but i think i can
> live without it now i know that it dont exist in py
thanks for the help Andreas, i dont really need that much a const so i wont
do anything like that to have a const like data. I am very used to java and
c++, thats why i always used acess modifier, but i think i can live without
it now i know that it dont exist in python :P.
On Thu, Mar 6, 2008 a
The answer is slightly more complex.
1.) objects are either mutable or immutable. E.g. tuples and strings are
per definition immutable and "constant". Lists and dictionaries are an
example of the mutable kind.
2.) "variables", "instance members" are all only references to objects.
Examples:
# l
16 matches
Mail list logo