|
This is ugly logic: <code> DateAndTime>>- operand "operand conforms to protocol DateAndTime or protocol Duration"
^ (operand respondsTo: #asDateAndTime) ifTrue: [ | other | other := operand asDateAndTime. Duration seconds: (SecondsInDay * (julianDayNumber - other julianDayNumberUTC)) + (seconds - other secondsSinceMidnightUTC) nanoSeconds: nanos - other nanoSecond ] ifFalse: [ self + operand negated ] </code> We should just use double dispatch.
|
|
|
Priority: 5 – Fix If Time
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Pharo7.0
|
Go to Case
|
|