Date readFrom

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

Date readFrom

Jeff Gray
If I inspect:
Date readFrom: '10-04-2012' pattern: 'dd-mm-yyyy'

I get the following exception:
MessageNotUnderstood: ByteString>>atEnd

Pharo1.3
Latest update: #13286

A bit old but I couldn't find a bug in the bug tracker.
What did I do wrong?
Reply | Threaded
Open this post in threaded view
|

Re: Date readFrom

Jan van de Sandt
Hello,

I think the readFrom method expects a Stream. Try:

Date readFrom: '10-04-2012' readStream pattern: 'dd-mm-yyyy'

Jan.

On Thu, Sep 8, 2011 at 12:55 PM, Jeff Gray <[hidden email]> wrote:
If I inspect:
Date readFrom: '10-04-2012' pattern: 'dd-mm-yyyy'

I get the following exception:
MessageNotUnderstood: ByteString>>atEnd

Pharo1.3
Latest update: #13286

A bit old but I couldn't find a bug in the bug tracker.
What did I do wrong?

--
View this message in context: http://forum.world.st/Date-readFrom-tp3798424p3798424.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


Reply | Threaded
Open this post in threaded view
|

Re: Date readFrom

Jeff Gray
Ah - so obvious now. Thank for the quick reply Jan.
lol - clue was in the method descriptor readFrom: aStream