[ENH] DateAndTime

Ross Boylan RossBoylan at stanfordalumni.org
Sun Apr 28 20:53:59 UTC 2002


from preamble:

"Change Set:		DateAndTime
Date:			21 October 2001
Author:			Ross Boylan

This change set is an adaption and extension of Brent Pinkney's work to
bring ANSI standard DateAndTime and Duration implementations to squeak.
However, that work replaces the existing Date, Time, Week, and other
classes, while this leaves them in place.  The new analogues have DT
prefixed to their names (e.g., DTDate, DTWeek).  I have also removed
various code that makes the new scheme the default for the whole system.

So this makes the new approach available, without mandating it or
changing the rest of the system.  I have used it in 3.1 and 3.2 alpha
images.

Since someday these may become the standard classes in the image, I
recomend NOT hardcoding these class names.  Instead use 
DateAndTime dateClass
and similar methods in the DateAndTime class migration protocol.

I have also made a few changes and extensions, notably providing more
support for formatted printing and reading of DateAndTimes.  The reading
capabilities are still primitive.  In particular, you must use 4 digits
for the year.

See Brent's Swiki page http://minnow.cc.gatech.edu/squeak/1871 for more
information and motivation.

Brent, who is currently on an extended vacation, is
pinkfoot at bigfoot.com.
Ross is RossBoylan at stanfordalumni.org"!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DateAndTime.cs.gz
Type: application/octet-stream
Size: 19856 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020428/7b2447c1/DateAndTime.cs.obj


More information about the Squeak-dev mailing list