[Newbies] Pre 1900 Date problems

Yoshiki Ohshima yoshiki at vpri.org
Fri Sep 5 22:48:54 UTC 2008


At Fri, 5 Sep 2008 17:54:19 -0400,
Rob Rothwell wrote:
> 
> How do I reference dates prior to 1900 in Squeak?
> 
> When I print, for instance d := Date fromString: '01/01/1800', I get 1 January 3700.
> 
> 1700 = 3600,
> 
> etc...
> 
> Should I be using a different Date/TimeStamp package for this sort of thing?

  It is only #readFrom: is trying to be too helpful, but the system
itself can surely represent these earlier dates.

Date class>>year:month:day:

does the right thing.

-- Yoshiki


More information about the Beginners mailing list