[squeak-dev] Time>>#-

David T. Lewis lewis at mail.msen.com
Fri Aug 16 04:09:18 UTC 2019

On Thu, Aug 15, 2019 at 07:56:04PM +0000, Thiede, Christoph wrote:
> Hi, there.
> Is there any reason why we don't have Time>>#-?

Yes. Conceptually, it does not make sense because class Time does not
represent a magnitude. If you want to think of the time of day as a
magnitude, then class DateAndTime is probably what you want.

The class comment for Time explains:

  If you need a point in time on a particular day, use DateAndTime.
  If you need a duration of time, use Duration.


More information about the Squeak-dev mailing list