A class for storing, accessing and comparing dates.
More...
#import <OFDate.h>
List of all members.
Detailed Description
A class for storing, accessing and comparing dates.
Member Function Documentation
- Returns:
- A new, autoreleased OFDate with the current date and time
- (OFDate *) dateByAddingTimeInterval: |
|
(int64_t) |
sec |
|
|
Returns a new date with the specified time interval added.
- Parameters:
-
| sec | The seconds after the date |
- Returns:
- A new, autoreleased OFDate
- (OFDate *) dateByAddingTimeInterval: |
|
(int64_t) |
sec |
withMicroseconds: |
|
(uint32_t) |
usec | |
|
|
| | |
Returns a new date with the specified time interval added.
- Parameters:
-
| sec | The seconds after the date |
| usec | The microseconds after the date |
- Returns:
- A new, autoreleased OFDate
Creates a string of the date with the specified format.
See the manpage for strftime for information on the format.
- Parameters:
-
| fmt | The format for the date string |
- Returns:
- A new, autoreleased OFString
+ (id) dateWithTimeIntervalSince1970: |
|
(int64_t) |
sec |
|
|
- Parameters:
-
| sec | The seconds since 1970-01-01T00:00:00Z |
- Returns:
- A new, autoreleased OFDate with the specified date and time
+ (id) dateWithTimeIntervalSince1970: |
|
(int64_t) |
sec |
microseconds: |
|
(uint32_t) |
usec | |
|
|
| | |
- Parameters:
-
| sec | The seconds since 1970-01-01T00:00:00Z |
| usec | The microsecond part of the time |
- Returns:
- A new, autoreleased OFDate with the specified date and time
+ (id) dateWithTimeIntervalSinceNow: |
|
(int64_t) |
sec |
|
|
- Parameters:
-
| sec | The seconds since now |
- Returns:
- A new, autoreleased OFDate with the specified date and time
+ (id) dateWithTimeIntervalSinceNow: |
|
(int64_t) |
sec |
microseconds: |
|
(uint32_t) |
usec | |
|
|
| | |
- Parameters:
-
| sec | The seconds since now |
| usec | The microsecond part of the time |
- Returns:
- A new, autoreleased OFDate with the specified date and time
- Returns:
- The day of the month of the date
- Returns:
- The day of the week of the date
- Returns:
- The day of the year of the date
Returns a date in the distant future. The date is system-dependant.
- Returns:
- A date in the distant future
Returns a date in the distant past. The date is system-dependant.
- Returns:
- A date in the distant past
- Parameters:
-
- Returns:
- The earlier date of the two dates
- Returns:
- The hour of the date
- (id) initWithTimeIntervalSince1970: |
|
(int64_t) |
sec |
|
|
Initializes an already allocated OFDate with the specified date and time.
- Parameters:
-
| sec | The seconds since 1970-01-01T00:00:00Z |
- Returns:
- An initialized OFDate with the specified date and time
- (id) initWithTimeIntervalSince1970: |
|
(int64_t) |
sec |
microseconds: |
|
(uint32_t) |
usec | |
|
|
| | |
Initializes an already allocated OFDate with the specified date and time.
- Parameters:
-
| sec | The seconds since 1970-01-01T00:00:00Z |
| usec | The microsecond part of the time |
- Returns:
- An initialized OFDate with the specified date and time
- (id) initWithTimeIntervalSinceNow: |
|
(int64_t) |
sec |
|
|
Initializes an already allocated OFDate with the specified date and time.
- Parameters:
-
| sec | The seconds since now |
| usec | The microsecond part of the time |
- Returns:
- A new, autoreleased OFDate with the specified date and time
- (id) initWithTimeIntervalSinceNow: |
|
(int64_t) |
sec |
microseconds: |
|
(uint32_t) |
usec | |
|
|
| | |
Initializes an already allocated OFDate with the specified date and time.
- Parameters:
-
| sec | The seconds since now |
| usec | The microsecond part of the time |
- Returns:
- A new, autoreleased OFDate with the specified date and time
- Parameters:
-
- Returns:
- The later date of the two dates
Creates a string of the local date with the specified format.
See the manpage for strftime for information on the format.
- Parameters:
-
| fmt | The format for the date string |
- Returns:
- A new, autoreleased OFString
- (uint8_t) localDayOfMonth |
|
|
|
|
- Returns:
- The day of the month of the date in local time
- (uint8_t) localDayOfWeek |
|
|
|
|
- Returns:
- The day of the week of the date in local time
- (uint16_t) localDayOfYear |
|
|
|
|
- Returns:
- The day of the year of the date in local time
- Returns:
- The hour of the date in local time
- (uint8_t) localMonthOfYear |
|
|
|
|
- Returns:
- The month of the year of the date in local time
- Returns:
- The microsecond of the date
- (uint32_t) microsecondsOfTimeIntervalSince1970 |
|
|
|
|
- Returns:
- The microseconds part of the seconds since 1970-01-01T00:00:00Z
- (uint32_t) microsecondsOfTimeIntervalSinceDate: |
|
(OFDate*) |
date |
|
|
- Returns:
- The microseconds part of the seconds the receiver is after the date
- Returns:
- The minute of the date
- Returns:
- The month of the year of the date
- Returns:
- The seconds of the date
- (int64_t) timeIntervalSince1970 |
|
|
|
|
- Returns:
- The seconds since 1970-01-01T00:00:00Z
- (int64_t) timeIntervalSinceDate: |
|
(OFDate*) |
date |
|
|
- Returns:
- The seconds the receiver is after the date.
- Returns:
- The year of the date
The documentation for this class was generated from the following files: