On 14 Sep 2005 06:26:01 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I was wondering if it there is an "easy" way to get the dd-mm- from
> ww-.
Note that there are different standards[0] for assigning numbers to weeks in a
year. Whatever software or algorithm you use, make sure it
Thanks!
Both solutions worked perfectly.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] writes:
>I was wondering if it there is an "easy" way to get the dd-mm- from
>ww-.
>I would like to get, for example the first day (date-month-year) in the
>week i specify. Found plenty of ways to go th other way, but none that
>give me the reverse.
>Idealy I would like
year = '2005'
week = 50
weekday = 1 # Monday is 1
time_expr = '%s, %s, %s' % (year, week, weekday)
time_struct = time.strptime(time_expr, "%Y, %W, %w")
print time.strftime("%Y%m%d", time_struct)
But the datetime module may have an easier way
--
http://mail.python.org/mailman/listinfo/python-li
I was wondering if it there is an "easy" way to get the dd-mm- from
ww-.
I would like to get, for example the first day (date-month-year) in the
week i specify. Found plenty of ways to go th other way, but none that
give me the reverse.
Idealy I would like both the beginning date/time and