jeremy@hksys.com
)scottc@net-community.com
)richard@brainstorm.co.uk
)Version: 1.80
Date: 2004/05/24 15:30:11
Copyright: (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
- Declared in:
- Foundation/NSDate.h
- Conforms to:
- NSCoding
- NSCopying
Standards:
- MacOS-X
- OpenStep
- GNUstep
NSDate is the abstract base class of a cluster of date
classes.
An NSDate object encapsulates a
constant date/time to a high resolution represented
by the NSTimeInterval typedef.
Returns an autoreleased instance representing the current date/time.
Returns an autoreleased instance representing the date and time given by string. The value of string may be a 'natural' specification as specified by the preferences in the user defaults database, allowing phrases like 'last tuesday'
Returns an autoreleased instance representing the date and time given by string. The value of string may be a 'natural' specification as specified by the preferences in the user defaults database, allowing phrases like 'last tuesday'
The locale contains keys such as -
Returns an autoreleased instance with the date and time value given by the string using the ISO standard format YYYY-MM-DD HH:MM:SS +/-HHHMM (all the fields of which must be present).
Returns an autoreleased instance with the offset from the unix system reference date of 1 January 1970, GMT.
Returns an autoreleased instance with the offset from the current date/time given by seconds (which may be fractional).
Returns an autoreleased instance with the offset from the OpenStep reference date of 1 January 2001, GMT.
Returns an autoreleased instance with th date/time set in the far future.
Returns an autoreleased instance with th date/time set in the far past.
Returns the time interval between the current date and the reference date (1 January 2001, GMT).
Returns an autoreleased NSDate instance whose value if offset from that of the receiver by seconds.
Returns NSOrderedDescending if the receiver is later than otherDate, Returns NSOrderedAscending if the receiver is earlier than otherDate, Otherwise, returns NSOrderedSame.
Returns an autoreleased instance of the NSCalendarDate class whose date/time value is the same as that of the receiver, and which uses the formatString and timeZone specified.
Returns a string representation of the receiver formatted according to the default format string, time zone, and locale.
Returns a string representation of the receiver formatted according to the specified format string, time zone, and locale.
Returns a string representation of the receiver formatted according to the default format string and time zone, but using the given locale.
Returns the earlier of the receiver and
otherDate.
If the two represent
identical date/time values, returns the receiver.
Returns an instance with the date and time value given by the string using the ISO standard format YYYY-MM-DD HH:MM:SS +/-HHHMM (all the fields of which must be present).
Returns an instance with the given offset from anotherDate.
Returns an instance with the offset from the unix system reference date of 1 January 1970, GMT.
Returns an instance with the offset from the current date/time.
Returns an instance with the given offset from the OpenStep reference date of 1 January 2001, GMT.
Description forthcoming.
Returns the earlier of the receiver and
otherDate.
If the two represent
identical date/time values, returns the receiver.
Returns the time interval between the receivers value and the unix system reference date of 1 January 1970, GMT.
Returns the time interval between the receivers value and that of the otherDate argument. If otherDate is earlier than the receiver, the returned value will be positive, if it is later it will be negative.
Returns the time interval between the receivers value and the current date/time. If the receiver represents a date/time in the past this will be negative, if it is in the future the returned value will be positive.
Returns the time interval between the receivers value and the OpenStep reference date of 1 Jan 2001 GMT.