I think you'll find the problem occurs in the Time class>>readFrom: method.
(Try stepping through it from a workspace using F11--what a great feature!)
Once it determines that it's an AM time, it checks the hours to make sure that
it's included in the range from 0 to 11. If that range is from 0 to 12
instead, it seems to work fine, since the way it deals with the hours later in
the method (i.e., hh % 12) if there is a marker, avoids any ill effects. Of
course, that's pretty much with no testing to speak of.
Don
"Paul Kelly" <
[hidden email]> wrote in message
news:9eecni$a4f$
[hidden email]...
> on a flyer .... But there is a space between "12:00" and the "AM" but not
> for the "00:00AM"
>
> Could this be it?
>
>
> "Christopher J. Demers" <
[hidden email]> wrote in
> message news:9ecos3$25ep2$
[hidden email]...
> > Time fromString: does not accept "12:00 AM" as a valid time.
> >
> > "Error"
> > Time fromString: '12:00 AM'
> >
> > "Works"
> > Time fromString: '00:00AM'
> >
> > "Works"
> > Time fromString: '00:00'
> >
> >
>
>