[Pkg] The Trunk: Chronology-Core-ul.10.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Feb 5 19:52:57 UTC 2018


Levente Uzonyi uploaded a new version of Chronology-Core to project The Trunk:
http://source.squeak.org/trunk/Chronology-Core-ul.10.mcz

==================== Summary ====================

Name: Chronology-Core-ul.10
Author: ul
Time: 21 January 2018, 10:47:08.890119 pm
UUID: 415cc09f-0491-491c-b6a1-d4e696597018
Ancestors: Chronology-Core-pre.9

- applied SourceCodeFixer

=============== Diff against Chronology-Core-pre.9 ===============

Item was changed:
  ----- Method: DateAndTime>>< (in category 'ansi protocol') -----
  < comparand 
  	"comparand conforms to protocol DateAndTime,
  	or can be converted into something that conforms."
  	| lvalue rvalue comparandAsDateAndTime |
+ 	comparandAsDateAndTime := comparand asDateAndTime.
- 	comparandAsDateAndTime _ comparand asDateAndTime.
  	self offset = comparandAsDateAndTime offset
  		ifTrue:
  			[ lvalue := self.
  			rvalue := comparandAsDateAndTime ]
  		ifFalse:
  			[ lvalue := self asUTC.
  			rvalue := comparandAsDateAndTime asUTC ].
  	^ lvalue julianDayNumber < rvalue julianDayNumber or:
  		[ lvalue julianDayNumber > rvalue julianDayNumber
  			ifTrue: [ false ]
  			ifFalse:
  				[ lvalue secondsSinceMidnight < rvalue secondsSinceMidnight or:
  					[ lvalue secondsSinceMidnight > rvalue secondsSinceMidnight
  						ifTrue: [ false ]
  						ifFalse: [ lvalue nanoSecond < rvalue nanoSecond ] ] ] ]!



More information about the Packages mailing list