[B136] GreaseVASTCoreApp>DateAndTime class>>date:time:

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

[B136] GreaseVASTCoreApp>DateAndTime class>>date:time:

Postby marten » Fri Feb 19, 2010 6:06 am

Bug in code ...


self
....
month: date monthIndex (instead of date month)
.....
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: [B136] GreaseVASTCoreApp>DateAndTime class>>date:time:

Postby wembley » Fri Feb 19, 2010 6:21 am

Case 45358 opened.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC

Re: [B136] GreaseVASTCoreApp>DateAndTime class>>date:time:

Postby wembley » Fri Feb 19, 2010 6:31 am

Marten -

Did you mean DateAndTime class>>date:time:? Date doesn't provide that method.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC

Re: [B136] GreaseVASTCoreApp>DateAndTime class>>date:time:

Postby marten » Fri Feb 19, 2010 7:13 am

wembley wrote:Marten -

Did you mean DateAndTime class>>date:time:? Date doesn't provide that method.


Yes, you are right - sorry about this mistake ...
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany

Re: [B136] GreaseVASTCoreApp>DateAndTime class>>date:time:

Postby wembley » Fri Feb 19, 2010 7:20 am

Marten -

No problem -- I've changed the title here and on the case from [B136] GreaseVASTCoreApp>Date class>>date:time: to [B136] GreaseVASTCoreApp>DateAndTime class>>date:time:.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC

Re: [B136] GreaseVASTCoreApp>DateAndTime class>>date:time:

Postby wembley » Fri Feb 19, 2010 8:04 am

Fix:
Code: Select all
date: aDate time: aTime
   "Answer an instance of the receiver built from the given local @aDate and @aTime.

   PARAMETERS
      aDate : <Date>
      aTime : <Time>

   RETURN VALUE
      <DateAndTime>"

   ^ self
      fromMilliseconds: aDate asMilliseconds + aTime asMilliseconds - self systemOffset asMilliseconds
      offset: self systemOffset
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest