#1185 Date equality comparison fails for equal dates

Closed
opened 8 years ago by nero · 0 comments

Originally at 2015-06-11T22:57:03Z by Jupiter Jones closed at 2015-06-12T13:43:58Z

= (in Date) reverts to == (in ProtoObject) so an equality comparison for equal dates returns false.

= aDate

^ (aDate isKindOf: Date) and: [ self time == aDate time ]
Originally at 2015-06-11T22:57:03Z by Jupiter Jones closed at 2015-06-12T13:43:58Z = (in Date) reverts to == (in ProtoObject) so an equality comparison for equal dates returns false. = aDate ^ (aDate isKindOf: Date) and: [ self time == aDate time ]
Sign in to join this conversation.
No Label
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.