Time Methods

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Time Methods

Dan Norton

The methods Time>>subtractTime: and Time>>asSeconds went away.


Do equivalent methods exist by other names?

  

_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
Reply | Threaded
Open this post in threaded view
|

Re: Time Methods

Phil B
On Thu, 2015-03-05 at 11:17 -0500, Dan Norton wrote:
> The methods Time>>subtractTime: and Time>>asSeconds went away.
>
>
> Do equivalent methods exist by other names?
>
1) -

2) second (shouldn't that be seconds?)

>  
> _______________________________________________
> Cuis mailing list
> [hidden email]
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org



_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
Reply | Threaded
Open this post in threaded view
|

Re: Time Methods

Dan Norton
On 5 Mar 2015 at 15:34, Phil (list) wrote:

> On Thu, 2015-03-05 at 11:17 -0500, Dan Norton wrote:
> > The methods Time>>subtractTime: and Time>>asSeconds went away.
> >
> >
> > Do equivalent methods exist by other names?
> >
> 1) -
>
> 2) second (shouldn't that be seconds?)
>

No, in the Squeak terse guide that I ported, it's #asSeconds and Cuis has no method by that
name. I'd like to know if there is an equivalent. If not, I'll just remove references to it from the
terse guide.

Cuis has
        #second
        #seconds:
        seconds:nanoSeconds:

none of these seem equivalent AFAIKT. The last two are private.
       

 - Dan

_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
Reply | Threaded
Open this post in threaded view
|

Re: Time Methods

Dan Norton
In reply to this post by Phil B
On 5 Mar 2015 at 15:34, Phil (list) wrote:

> On Thu, 2015-03-05 at 11:17 -0500, Dan Norton wrote:
> > The methods Time>>subtractTime: and Time>>asSeconds went away.
> >
> >
> > Do equivalent methods exist by other names?
> >
> 1) -
>
> 2) second (shouldn't that be seconds?)
>

Ah, now I understand your point about "seconds" and plural does seem better for the method
name, but at least it's consistent with "hour, minute, and nanoSecond".

It seems to behave differently from #asSeconds on Squeak tho.

 - Dan

_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
Reply | Threaded
Open this post in threaded view
|

Re: Time Methods

Phil B
On Thu, 2015-03-05 at 21:15 -0500, Dan Norton wrote:

> On 5 Mar 2015 at 15:34, Phil (list) wrote:
>
> > On Thu, 2015-03-05 at 11:17 -0500, Dan Norton wrote:
> > > The methods Time>>subtractTime: and Time>>asSeconds went away.
> > >
> > >
> > > Do equivalent methods exist by other names?
> > >
> > 1) -
> >
> > 2) second (shouldn't that be seconds?)
> >
>
> Ah, now I understand your point about "seconds" and plural does seem better for the method
> name, but at least it's consistent with "hour, minute, and nanoSecond".
>
> It seems to behave differently from #asSeconds on Squeak tho.
>

You are correct... that's not an equivalent.  It appears to just be
returning the seconds component of the time.  My mistake.

>  - Dan
>
> _______________________________________________
> Cuis mailing list
> [hidden email]
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org



_______________________________________________
Cuis mailing list
[hidden email]
http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org