Date readFrom

classic Classic list List threaded Threaded
3 messages Options
Jeff Gray Jeff Gray
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Date readFrom

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?
Jan van de Sandt Jan van de Sandt
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Date readFrom

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.


Jeff Gray Jeff Gray
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Date readFrom

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