Release 1.0  Copyright ã1993 by Don Yacktman.  All Rights Reserved.

MiscTime

Inherits From:	Object

Conforms To:	NXTransport

Declared In:	misckit/MiscTime.h

Class Description

This documentation is still incomplete, and the class itself is only halfway implemented (no day of week or customized stringValues).  Sorry.

MiscTime is used to store a time, accurate from years down to microseconds.  You can add and subtract MiscTimes from each other and specify how to generate a string value for the time.  It can calculate the day of the week for a given date, as well.  If used to measure time in a relative sense, then the day of week functions are disabled since they don't make sense semantically.  A MiscTime object may easily be initialized to an arbitrary time or set to the current time on the system clock.  It may also be sent bycopy over a distributed objects link and archived to a file.

Instance Variables

BOOL isRelative;
long microsecond;
long second;
long minute;
long hour;
long dow;
long day;
long month;
long year;

isRelative 	Whether the MiscTime object is an absolute or relative time.

microsecond 	The microsecond (0 ± 999,999).

second 	The second (0 ± 59).

minute 	The minute (0 ± 59).

hour 	The hour (0 ± 23).

dow 	The day of the week (-1 ±€6).  dow is -1 if the day of the week is unknown; for example, if it has not yet been calculated.

day 	The day of the month (0 ± 27/28/29/30).

month 	The month (0 ± 11).

year 	The year.

Method Types

Initializing and freeing a MiscTime	± init
	± initWithCurrentTime

Changing a MiscTime	± setDay:
	± setDayOfWeek:
	± setHour:
	± setMicrosecond:
	± setMinute:
	± setMonth:
	± setRelative:
	± setSecond:
	± setYear:

Manipulating a MiscTime	± addDays:
	± addHours:
	± addMicroseconds:
	± addMinutes:
	± addMonths:
	± addSeconds:
	± addTime:
	± addYears:
	± calcDayOfWeek
	± subtractDays:
	± subtractHours:
	± subtractMicroseconds:
	± subtractMinutes:
	± subtractMonths:
	± subtractSeconds:
	± subtractTime:
	± subtractYears:

Querying attributes	± day
	± dayOfWeek
	± doubleValue
	± floatValue
	± hour
	± intValue
	± isRelative
	± microsecond
	± minute
	± month
	± second
	± stringValue
	± year

Archiving	± read:
	± write:

Instance Methods

x
- x:(x)x

x.  Returns self.

See also:  -x:

x
- x:(x)x

x.  Returns self.

See also:  -x: