[Python-ideas] date.datetime() method to convert from date to datetime
Ben Finney
ben+python at benfinney.id.au
Fri Jun 3 08:03:29 CEST 2011
More information about the Python-ideas mailing list
Fri Jun 3 08:03:29 CEST 2011
- Previous message: [Python-ideas] date.datetime() method to convert from date to datetime
- Next message: [Python-ideas] date.datetime() method to convert from date to datetime
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Evan Martin <python-dev at realityexists.net> writes: > There is a datetime.date() method for converting from a datetime to a > date, but no stdlib method to do the opposite conversion. Could a > date.datetime() method be added that returns a datetime with the time > component set to zero? What is “zero” for a time-of-day? Do you mean “midnight on that day”? In what timezone? -- \ “Faith, n. Belief without evidence in what is told by one who | `\ speaks without knowledge, of things without parallel.” —Ambrose | _o__) Bierce, _The Devil's Dictionary_, 1906 | Ben Finney
- Previous message: [Python-ideas] date.datetime() method to convert from date to datetime
- Next message: [Python-ideas] date.datetime() method to convert from date to datetime
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list