[F+O] Rename component-from-duration() functions

I propose that we rename the functions:

years-from-yearMonthDuration
months-from-yearMonthDuration
days-from-dayTimeDuration
hours-from-dayTimeDuration
minutes-from-dayTimeDuration
seconds-from-dayTimeDuration

to

years-from-duration
months-from-duration
days-from-duration
hours-from-duration
minutes-from-duration
seconds-from-duration

without changing their signatures.

Firstly, the new names are shorter, which is a good thing in itself.

Secondly, I think we should anticipate at some stage (in v3.0)
supporting these functions on all durations, not only on the subtypes.
This naming change will make it easier to extend the domain of the
functions in the future.

Michael Kay 

Received on Thursday, 19 February 2004 07:25:52 UTC