Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
On Thu, Apr 08, 2004 at 08:16:06PM -0500, Mark Rages wrote:
> def date_format(etime):
> return time.strftime("%A, %b %d, %Y",time.localtime(time.mktime(etime)))
This line would be much simpler (and not have Y2038 issues) if I wrote
it like this:
def date_format(etime):
return time.strftime("%A, %b %d, %Y",etime)
But this was telling me that Easter falls on Monday! Try it and see.
Pythonistas help me out here... what's going on?
I guess this would do as well, at least for this application:
def date_format(etime):
return time.strftime("Sunday, %b %d, %Y",etime)
Regards,
Mark
EMAIL:PROTECTED
--
To invent, you need a good imagination and a pile of junk. -Thomas Edison
_______________________________________________
discussion mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/discussion