[Pharo-dev] Milliseconds in DateAndTime or TimeStamp

roberto.minelli at usi.ch roberto.minelli at usi.ch
Tue Apr 22 14:23:52 EDT 2014


If done right, TimeStamp would have not caused any confusion. 
Now that I discovered that a TimeStamp is a DateAndTime with rounded seconds (read: non-sense) I agree with you.

On Apr 22, 2014, at 6:42 PM, Sven Van Caekenberghe <sven at stfx.eu> wrote:

> 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