codefrau / SqueakJS

A Squeak Smalltalk VM in Javascript
https://squeak.js.org
MIT License
365 stars 75 forks source link

Add an implementation of primitiveUtcWithOffset #84

Closed dtlewis290 closed 7 years ago

dtlewis290 commented 7 years ago

This is an implementation of primitiveUtcWithOffset, a named (not numbered) primitive that answers UTC microseconds and local timezone offset in an atomic prim call. Required for the UTCDateAndTime enhancements to Squeak's base Chronology package. DateAndTime>>now is 70x faster (!) with this implementation versus traditional Squeak Chronology when running on SqueakJS.