The Trunk: Chronology-Core-ul.21.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Chronology-Core-ul.21.mcz

commits-2
David T. Lewis uploaded a new version of Chronology-Core to project The Trunk:
http://source.squeak.org/trunk/Chronology-Core-ul.21.mcz

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

Name: Chronology-Core-ul.21
Author: dtl
Time: 4 January 2019, 1:17:39.848442 pm
UUID: 5d9b02fa-8e37-4678-adda-f302163732a1
Ancestors: Chronology-Core-dtl.20

From Chronology-Core-ul.21 from inbox, and resaved to ensure that version history exactly matches that of trunk. Updated by dtl and saved with original author initials.

Name: Chronology-Core-ul.21
Author: ul
Time: 26 December 2018, 1:48:40.220196 am
UUID: 2e6f6ce2-d0ec-41a0-b27c-88c642e5afc9
Ancestors: Chronology-Core-dtl.20

- fix: do not subtract the offset twice while evaluating DateAndTime >> #setJdn:seconds:nano:localOffsetSeconds:
- use 0 for seconds in DateAndTime >> #midnight, because the offset will not be subtracted from the passed value

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

Item was changed:
  ----- Method: DateAndTime>>midnight (in category 'squeak protocol') -----
  midnight
  "Answer a DateAndTime starting at midnight of the same timezone offset as the receiver."
  ^ self class basicNew
  setJdn: self julianDayNumber
+ seconds: 0
- seconds: localOffsetSeconds
  nano: 0
  localOffsetSeconds: localOffsetSeconds.!

Item was changed:
  ----- Method: DateAndTime>>setJdn:seconds:nano:localOffsetSeconds: (in category 'private') -----
  setJdn: jdn seconds: s nano: n localOffsetSeconds: offset
 
  localOffsetSeconds := offset.
  utcMicroseconds := self
  microsecondsFromDay: jdn
+ seconds: s
- seconds: s - offset
  nanos: n
  offset: offset!