[Vm-dev] Re: [squeak-dev] A UTC based implementation of DateAndTime

David T. Lewis lewis at mail.msen.com
Wed May 28 23:30:54 UTC 2014


On Wed, May 28, 2014 at 08:46:08PM +0800, Ben Coman wrote:
>  
>> You should expect the following two primitives to be present in all VMs
>> (comments are from the VMM trunk implementations):
>> 
>> primitiveUtcWithOffset
>>         "Answer an array with UTC microseconds since the Posix epoch and
>>         the current seconds offset from GMT in the local time zone. An empty
>>         two element array may be supplied as a parameter.
>>         This is a named (not numbered) primitive in the null module (ie the VM)"
>> 
>> primitiveUTCMicrosecondClock
>>         "Answer the UTC microseconds since the Smalltalk epoch. The value is
>>         derived from the Posix epoch (see primitiveUTCMicrosecondClock) with a
>>         constant offset corresponding to elapsed microseconds between the two
>>         epochs according to RFC 868."
>> 
>   
> 
> Since both answer microseconds, then second seems a little confusing. 
> Calling them something like #primitivePosixUtcWithOffset and
> #primitiveSmalltalkUtc seems more intention revealing.
> 
> cheers -ben
>

That's a good suggestion. We could probably rename them now without any
ill effects. Eliot, do you have a preference?

Dave
 


More information about the Vm-dev mailing list