The Inbox: 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 Inbox: Chronology-Core-ul.21.mcz

commits-2
Levente Uzonyi uploaded a new version of Chronology-Core to project The Inbox:
http://source.squeak.org/inbox/Chronology-Core-ul.21.mcz

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

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!