Adding unknown variables to time.mktime()

Steve Holden sholden at holdenweb.com
Tue Jun 26 15:18:27 CEST 2001


"Gustaf Liljegren" <gustafl at algonet.se> wrote ...
> "Roman Suzi" <rnd at onego.ru> wrote:
>
> > >to be able to give only the 6 first values, since I've never heard of
> > >Julian days, and week day is not significant in this case.
>
> > try with all 9 integers.
> > RTFM time module docs.
>
> Read before you post. I always check the library reference, but it doesn't
> give any hints on what I asked for. If mktime() can't do it, maybe there's
> anyother way that you could suggest?
>
> Gustaf
>
Gustaf:

Use zeroes?

>>> import time
>>> time.asctime( (1999, 2, 12, 1, 34, 12, 0, 0, -1) )
'Mon Feb 12 01:34:12 1999'

Aargh. This is REALLY dumb:

>>> time.asctime( (1999, 2, 12, 1, 34, 12, 1, 1, -1) )
'Tue Feb 12 01:34:12 1999'

Have you looked at mxDateTime?

regards
 Steve
--
http://www.holdenweb.com/








More information about the Python-list mailing list