[squeak-dev] The Trunk: Chronology-Core-mt.69.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jul 5 06:58:18 UTC 2021


Marcel Taeumel uploaded a new version of Chronology-Core to project The Trunk:
http://source.squeak.org/trunk/Chronology-Core-mt.69.mcz

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

Name: Chronology-Core-mt.69
Author: mt
Time: 5 July 2021, 8:58:16.208745 am
UUID: 9bf6a192-d70f-0941-aa38-4a7c2bf2a798
Ancestors: Chronology-Core-dtl.66

Stop using classVar InitializeFromPrimitive before it gets removed in Chronology-Core-dtl.67.

=============== Diff against Chronology-Core-dtl.66 ===============

Item was changed:
  ----- Method: DateAndTime class>>now (in category 'ansi protocol') -----
  now
  	"Answer time now as reported by #primitiveUtcWithOffset. If the primitive is not
  	available, answer the Posix epoch GMT."
  
  	self automaticTimezone
+ 		ifTrue: [ ^ self basicNew initializeFromPrimitive ]
- 		ifTrue: [ InitializeFromPrimitive
- 			ifTrue: [ ^ self basicNew initializeFromPrimitive ]
- 			ifFalse: [ | timeArray |
- 				timeArray := Time posixMicrosecondClockWithOffset.
- 				^ self utcMicroseconds: timeArray first offset: timeArray second ] ]
  		ifFalse: [ | timeArray |
  			timeArray := Time posixMicrosecondClockWithOffset.
  			^ self utcMicroseconds: timeArray first offset: self localOffsetSeconds ]
  !



More information about the Squeak-dev mailing list