A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-July/102095.html below:

[Python-Dev] Curious datetime method

[Python-Dev] Curious datetime method [Python-Dev] Curious datetime methodAnders Sandvig anders.sandvig at gmail.com
Tue Jul 20 15:57:30 CEST 2010
> 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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4