On Sat, Aug 02, 2008 at 07:46:49PM -0700, Dennis Lee Bieber wrote:
>
>
What is the meaning of ?
e.
--
Egbert Bouwman - Keizersgracht 197 II - 1016 DS Amsterdam - 020 6257991
--
http://mail.python.org/mailman/listinf
Aljosa Mohorovic <[EMAIL PROTECTED]> wrote:
>
>what if i know current context week = 20 (example), what would be the
>best way to get datetime objects for first and last day of current
>context week?
>by "current context week" i don't mean current week for current year
>but current week when progra
On Jul 31, 5:42 pm, Aljosa Mohorovic <[EMAIL PROTECTED]>
wrote:
> what if i know current context week = 20 (example), what would be the
> best way to get datetime objects for first and last day of current
> context week?
> by "current context week" i don't mean current week for current year
> but c
On Jul 31, 3:58 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Instead of datetime.now() use date.today(), which removes a lot of
> boilerplate.
>
> int(date.today().strftime("%W"))
>
> Apart from that, I think it's the way to go.
what if i know current context week = 20 (example), what would
Aljosa Mohorovic wrote:
> i use this to find out current week and total number of weeks for
> current year:
> now = datetime.now()
> weeks_in_year = int(date(now.year, 12, 31).strftime("%W"))
> current_week = int(date(now.year, now.month, now.day).strftime("%W"))
>
> is this the best way or is th
i use this to find out current week and total number of weeks for
current year:
now = datetime.now()
weeks_in_year = int(date(now.year, 12, 31).strftime("%W"))
current_week = int(date(now.year, now.month, now.day).strftime("%W"))
is this the best way or is there a better way?
Aljosa Mohorovic
--