A UTC based implementation of DateAndTime

SqueakSource3 project page

The traditional implementation of DateAndTime uses instance variables 'seconds offset jdn nanos' and calculates its magnitude based on those varables in conjunction with the local TimeZone.
<p>
Replace this with an implementation using instance variables 'utcMicroseconds localOffsetSeconds'. This represents time magnitude as elapsed microseconds since the Posix epoch, with localOffsetSeconds representing local offset from UTC. The magnitude is used for comparison and duration calculations, and the local offset is used for displaying this magnitude in the context of a local time zone.
The implementation ignores leap seconds, which are adjustments made to maintain earth rotational clock time in synchronization with elapsed seconds.
<p>
DateAndTime class>>now will use #primitiveUtcWithOffset to obtain current time in UTC microseconds with current local offset in seconds. The primitive provides an atomic query for UTC time and local offset as measured by the OS platform. If primitiveUtcWithOffset is not available, the traditional implementation is used, which relies on a primitive for microseconds in the local time zone and derives UTC based on the TimeZone setting.
<p>
Package Kernel in the repository was work done against a Squeak v4.5 image updated to #13889.
The first four files, Kernel-dtl.861.mcz through Kernel-dtl.864.mcz, must be loaded individually and in sequence. Be patient during the loading process, as the Kernel-dtl.862.mcz and Kernel-dtl.864.mcz files will perform lengthy initialization, using become to convert existing objects to new formats.
<p>
CAUTION: These changes are not easily reversed. Try them first in a throw away image.

Kernel-dtl.926.mcz
Kernel-dtl.925.mcz
Kernel-dtl.910.mcz
Kernel-dtl.899.mcz
Kernel-dtl.893.mcz
Kernel-dtl.878.mcz
Kernel-dtl.877.mcz
Kernel-dtl.869.mcz
Kernel-dtl.868.mcz
Kernel-dtl.867.mcz
DateAndTimePerformance-dtl.1.mcz
Kernel-dtl.866.mcz
Kernel-dtl.865.mcz
Kernel-dtl.864.mcz
Kernel-dtl.863.mcz
Kernel-dtl.862.mcz
Kernel-dtl.861.mcz