Re: [Python-ideas] [Python-Dev] Issue5434: datetime.monthdelta

My thoughts on balance regarding monthdeltas: -- Month operations are useful, people will want to do them -- I think having a monthdelta object rather than a method makes sense to me -- I think the documentation is severely underdone. The functionality is not intuitive and therefore the docs need a lot more detail than usual -- Can you specify "1 month plus 10 days"?, i.e. add a monthdelta to a timedelta? -- What about other cyclical periods (fortnights, 28 days, lunar cycles, high tides)? Cheers, -T

On Fri, Apr 17, 2009, Tennessee Leeuwenburg wrote:
-- What about other cyclical periods (fortnights, 28 days, lunar cycles, high tides)?
That reminds me that we need to add a units module so that we can specify furlongs per fortnight! -- Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/ "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." --Red Adair

On Fri, Apr 17, 2009 at 11:52 AM, Aahz <aahz@pythoncraft.com> wrote:
The Python Papers carried an article about a year back from someone who had developed a units module, it would be very useful in some circumstances. The codebase I work on has heaps of faux-units functionality which would be great to wrap up into more fundamental unit-aware classes. Cheers, -T

Aahz <aahz@pythoncraft.com> writes:
That reminds me that we need to add a units module so that we can specify furlongs per fortnight!
+1, both to the humour and to the serious idea of such a module. -- \ “Conscience is the inner voice that warns us somebody is | `\ looking.” —Henry L. Mencken | _o__) | Ben Finney

Aahz> That reminds me that we need to add a units module so that we can Aahz> specify furlongs per fortnight! easy_install magnitude Skip

Tennessee Leeuwenburg wrote:
-- What about other cyclical periods (fortnights, 28 days, lunar cycles, high tides)?
Fortnights and 28 days are fixed numbers of days, so they should be covered by the existing timedelta object. Lunar cycles and high tides would be interesting, but they probably belong in a different module. Also, being astronomically determined, they wouldn't exactly fit into the datetime module's calendrical notion of time, which ignores leap seconds and other such inconvenient physical phenomena. -- Greg

On Fri, Apr 17, 2009, Tennessee Leeuwenburg wrote:
-- What about other cyclical periods (fortnights, 28 days, lunar cycles, high tides)?
That reminds me that we need to add a units module so that we can specify furlongs per fortnight! -- Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/ "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." --Red Adair

On Fri, Apr 17, 2009 at 11:52 AM, Aahz <aahz@pythoncraft.com> wrote:
The Python Papers carried an article about a year back from someone who had developed a units module, it would be very useful in some circumstances. The codebase I work on has heaps of faux-units functionality which would be great to wrap up into more fundamental unit-aware classes. Cheers, -T

Aahz <aahz@pythoncraft.com> writes:
That reminds me that we need to add a units module so that we can specify furlongs per fortnight!
+1, both to the humour and to the serious idea of such a module. -- \ “Conscience is the inner voice that warns us somebody is | `\ looking.” —Henry L. Mencken | _o__) | Ben Finney

Aahz> That reminds me that we need to add a units module so that we can Aahz> specify furlongs per fortnight! easy_install magnitude Skip

Tennessee Leeuwenburg wrote:
-- What about other cyclical periods (fortnights, 28 days, lunar cycles, high tides)?
Fortnights and 28 days are fixed numbers of days, so they should be covered by the existing timedelta object. Lunar cycles and high tides would be interesting, but they probably belong in a different module. Also, being astronomically determined, they wouldn't exactly fit into the datetime module's calendrical notion of time, which ignores leap seconds and other such inconvenient physical phenomena. -- Greg
participants (5)
-
Aahz
-
Ben Finney
-
Greg Ewing
-
skip@pobox.com
-
Tennessee Leeuwenburg