By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,235 Members | 1,057 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,235 IT Pros & Developers. It's quick & easy.

change date format

P: n/a
Apache by default uses the following format for date:
30/Aug/2005

is there a module that turn this directly into yyyymmdd?

Xah
xa*@xahlee.org
http://xahlee.org/

Aug 31 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
[Xah Lee]
Apache by default uses the following format for date:
30/Aug/2005

is there a module that turn this directly into yyyymmdd?


Use time.strptime() and time.strftime().

Not a single occurrence of the f**k word. You're making progress. Keep it up!

--
Lars Gustäbel
la**@gustaebel.de

Truth is the invention of a liar.
(Anonymous)
Aug 31 '05 #2

P: n/a
Lars Gustbel wrote:
Not a single occurrence of the f**k word. You're making progress.


perhaps, but why is he posting apache questions to the python list?

</F>

Aug 31 '05 #3

P: n/a

Fredrik Lundh wrote:
perhaps, but why is he posting apache questions to the python list?
The real question is why is he asking for our help at all, given:

Xah Lee wrote: Fuck the Python programing morons.


- alex23

Sep 1 '05 #4

P: n/a
alex23 wrote:
Fredrik Lundh wrote:
perhaps, but why is he posting apache questions to the python list?

The real question is why is he asking for our help at all, given:

Xah Lee wrote:
Fuck the Python programing morons.

He isn't asking for help. He's simply masturbating.

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/

Sep 1 '05 #5

P: n/a
Steve Holden wrote:
He isn't asking for help. He's simply masturbating.


Now _that_ is how you kill a thread :)

- alex23

Sep 1 '05 #6

P: n/a
Oh, please! Even the most lopsided, opinionated, um, person could have
tried, oh, maybe, "time" as a possible module for this function?

What next? "Is there a module or class that will convert 'I have no
shame. ' to upper case, AND trim the trailing whitespace?" (Hint: it
has to do with 'string' data.)

-- Paul

Sep 1 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.