[Pharo-dev] Milliseconds in DateAndTime or TimeStamp

Sven Van Caekenberghe sven at stfx.eu
Tue Apr 22 12:42:05 EDT 2014


TimeStamp is deprecated, because it creates too much confusion, you better use DateAndTime.

On 22 Apr 2014, at 17:11, roberto.minelli at usi.ch wrote:

> "TimeStamp now" rounds the timestamp, so #asNanoSeconds returns the seconds * 10e9.
> 
> Doing “DateAndTime now” solves my issue, but this is a total non-sense.
> 
> Cheers,
> R
> 
> On Apr 22, 2014, at 4:54 PM, Yuriy Tymchuk <yuriy.tymchuk at me.com> wrote:
> 
>> Well, it has #asNanoSeconds, how finer can you go?
>> 
>> Uko
>> 
>> On 22 Apr 2014, at 17:13, roberto.minelli at usi.ch wrote:
>> 
>>> Hi,
>>> 
>>> I am wondering if there is the possibility to get milliseconds in a TimeStamp.
>>> 
>>> I need to record fine-grained events and second-granularity is not enough.
>>> 
>>> Cheers,
>>> Roberto
>> 
>> 
> 
> 





More information about the Pharo-dev mailing list