previous chapter contents page top page next chapter

DateTime

January 21, 1994
last updated May 8, 1995

This is a class inheritance paragraph.
This is another class inheritance paragraph.

Class Description

CJ says that she really hates this template chapter. She's interested in rewriting it so it's an actual chapter template, well-organized, and useful. She's doing just that in fits & starts. As she finds problems, she fixes them.

Remember that if the documentation and the software (especially the definition files) disagree, always trust the software.

Programming information

Instantiate: never
Subclass: never
Call its methods: often

This section should describe what you need to know to put objects of this class into place in your packages. Do you always need to override certain methods? Are there other methods you'll often need to call? Do you need objects of other classes to go with this class?

Methods defined by class DateTime

Class DateTime defines the following methods, all intrinsics:

Method Description
CompareDateTime
DaysInMonth
DateStringFromDays
DateTextFromDays
DifferentTimes
LocalDate
LocalTime
NearestMatchingDate
PackDate
PackTime
SetLocalDate
SetLocalTime
StringToTime
StringToTimeRange
TimeRangeIndexToDate
TimeString
TimeToText
UniversalDate
UniversalTime
UnpackDate
UnpackTime

Methods you might override

You might override these methods in the following circumstances:

Method When to override
Madness If objects of your subclass are sane instead of mad
Haphazard If your subclass is always either haphazard or not haphazard

Fields defined by class DateTime

Class DateTime defines the following fields:

Field Type Description
dreams Boolean True if this field is the field of dreams
wrigleyField Boolean True if this field is Wrigley field

If any of the fields need to be filled out in any particular way, describe them here. You might want to put some object examples here, too.

Constants or Flags used by class DateTime

Describe any constants or flags here. In the header for each constant, strip a trailing "mask" or "bit" from the name. Make an index marker for each name, using markers of type "Type 11". The Index of Constants uses markers of type "Type 11". Here's a sample:

canCoexist

#define canCoexistBit            0
#define canCoexistMask           0x00000001    

Set this flag if your window can coexist on the screen with other windows that set this flag.

Method Descriptions

SetUpTargetWindow

operation SetUpTargetWindow(viewTarget: Viewable; attributeTarget: 
Object);

Call: sometimes
Override: rarely

Call SetUpTargetWindow to