Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #64640
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Subject | Re: datetime as subclass of date |
| Date | 2014-01-24 09:14 +1100 |
| References | <CANc-5Uw5z84=vAMVJaCH-KCSR=1q8_zTKuspaF2zzOG9qtVu4Q@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5913.1390515296.18130.python-list@python.org> (permalink) |
Skip Montanaro <skip@pobox.com> writes: > […] I was asking [Python] if a datetime instance was an instance of a > date. Which, it turns out, it is. Yep. Makes sense, since ‘datetime’ can do everything ‘date’ can do, and is conceptually a subset of the same concept. The same is not true of the ‘time’ type from that module, by the way; it does not represent a specific point on the timeline. So ‘datetime’ inheriting from ‘time’ wouldn't make sense. Just in case anyone was wondering. -- \ “There is something wonderful in seeing a wrong-headed majority | `\ assailed by truth.” —John Kenneth Galbraith, 1989-07-28 | _o__) | Ben Finney
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: datetime as subclass of date Ben Finney <ben+python@benfinney.id.au> - 2014-01-24 09:14 +1100
Re: datetime as subclass of date Roy Smith <roy@panix.com> - 2014-01-23 19:10 -0500
Re: datetime as subclass of date Ben Finney <ben+python@benfinney.id.au> - 2014-01-24 17:54 +1100
Re: datetime as subclass of date Skip Montanaro <skip@pobox.com> - 2014-01-24 10:03 -0600
csiph-web