[Vm-dev] Re: [squeak-dev] Daily Commit Log
Eliot Miranda
eliot.miranda at gmail.com
Sun Aug 15 00:28:28 UTC 2010
Hi David,
any chance of getting you to retract this? The Cog VM has 64-bit UTC &
local microseconds from the Smalltalk epoch (1901), which are hence easier
to use as a basis for the Squeak clock and still last for ~ 54,000 years.
I'd like to see the Cog and standard VMs converge on a primitive set. This
is an issue for me since changing the epoch is, I think, an unnecessary
change.
best
Eliot
On Sat, Aug 14, 2010 at 4:55 PM, <commits at source.squeak.org> wrote:
> Changes to Trunk (http://source.squeak.org/trunk.html) in the last 24
> hours:
>
>
> http://lists.squeakfoundation.org/pipermail/packages/2010-August/003596.html
>
> Name: Kernel-dtl.476
> Ancestors: Kernel-eem.475
>
> Add Time class>>primMicrosecondClock and Time class>>primUtcWithOffset for
> access to microsecond clock primitives available in newer Squeak VMs.
>
> primMicrosecondClock provides a system clock with nominal microsecond
> precision.
>
> primUtcWithOffset answers UTC time as microseconds since the Posix epoch
> and offset as seconds offset from GMT. The Squeak clock is traditionally
> implemented in terms of platform local time. Use of UTC time and offset is
> advantageous if time zones and daylight saving time offsets are to be
> considered.
>
> Example:
> { Time primMillisecondClock .
> Time primMicrosecondClock .
> Time primUtcWithOffset } ==> #(6932757 6932757830 #(1281815075538304
> -14400))
>
>
> =============================================
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20100814/fb7be713/attachment.htm
More information about the Vm-dev
mailing list