On Tue, Jul 20, 2010 at 5:56 PM, Alexander Belopolsky
wrote:
> In the real world where we have to take backward compatibility into
> account, I would like to make today() and now() to be the same: both
> taking optional tz argument, both available as either date or datetime
> methods and both cova
On Tue, Jul 20, 2010 at 9:57 AM, Anders Sandvig
wrote:
>> I wonder why would anyone want to use datetime.today() instead of
>> datetime.now()?
>
> Because this method is also present in datetime.date. Thus, you can
> reference stuff like d.today().day without caring whether d is a date
> or a dat
> I wonder why would anyone want to use datetime.today() instead of
> datetime.now()?
Because this method is also present in datetime.date. Thus, you can
reference stuff like d.today().day without caring whether d is a date
or a datetime object.
Anders
__