M
Michael C
Bill Butler said:Really?!? Not in my experience.
But, then again it could just be the areas we are working in that give us
a different outlook.
Don't get me wrong, I don't divide timespans by integers every day but then
again I don't use TimeSpan every day either.
While I could envision reasons for multiplying/dividing a Timestamp by a
number, I would hardly think they were common. What are you doing with
Timespans that makes this an attractive feature?
In my case I wanted to know if the current time was more than half way
between a previous event and the next scheduled event. But any occasion when
you'd need to divide seconds would be valid.
Agreed. Let's rip it out <grin>
Absolutely, if you are too restrictive, you can make hard to use classes.
I was just trying to offer a reason (besides forgetfulness) why
multiplication/division might be left out of the class.
Makes sense.
The existing TimeSpan was designed to go hand in hand with Datetime
arithmetic.
Addition, Subtraction, hours, minutes, seconds all feel natural to this
class.
Multiplication/Division by a constant feels more like an attempt to do
math with units
miles/hour
meters/sec^2
In that case the timespan class is not really a good fit either.
Why? Because it's based on an integer?
Michael
