[squeak-dev] Date today versus DateAndTime today

Bernhard Pieber bernhard at pieber.com
Wed Dec 8 22:21:43 UTC 2021


Hi everyone,

I am quite puzzled that the following answers false:
DateAndTime today asDate = Date today.

The reason seems to be the localOffsetSeconds. While DateAndTime today asDate has a local timezone, Date today has not. Shouldn’t this be consistent?

The following answers false as well:
Date today start = DateAndTime today

I assume it is for the same reason.

I suppose this is a feature, not a bug, but what is the reason for this behaviour?

Cheers,
Bernhard




More information about the Squeak-dev mailing list