Timestamp for data within VisualCommander.
More...
List of all members.
Detailed Description
A VisualCommander-specific representation of time, providing high-resolution timestamps over a wide range of potential dates. All data produced by sessions is tagged with timestamps.
Member Function Documentation
- (NSComparisonResult) compare: |
|
(VCTimestamp *) |
anotherTimestamp |
|
Compare the chronological ordering of the timestamp with a second timestamp.
- Parameters:
-
anotherTimestamp | The timestamp with which to compare the receiver. |
- Returns:
- If the receiver is identical to anotherTimestamp, or either is nil, returns NSOrderedSame. If the receiver is chronologically earlier than anotherTimestamp, returns NSOrderedAscending. Otherwise, returns NSOrderedDescending.
- (id) initWithJulianDate: |
|
(double) |
jD |
|
Initialize a timestamp that represents a Julian date.
- Parameters:
-
jD | A double representation of a Julian date |
- Returns:
- The receiver is returned.
- (id) initWithNSDate: |
|
(NSDate *) |
aDate |
|
Initialize a timestamp from an NSDate object.
- Parameters:
-
aDate | An NSDate object. Must not be nil. Must not be the NSDate representations [NSDate distantPast] or [NSDate distantFuture]. |
- Returns:
- The receiver is returned.
Initialize a timestamp by subtracting an interval from an existing timestamp.
- Parameters:
-
timestamp | The base timestamp, from which an interval will be subtracted. |
interval | The interval to subtract |
- Returns:
- The receiver is returned.
Initialize a timestamp by adding an interval to an existing timestamp.
- Parameters:
-
timestamp | The base timestamp, to which an interval will be added. |
interval | The interval to add |
- Returns:
- The receiver is returned.
Find the interval between the provided timestamp and the receiver, (receiver - timestamp).
- Parameters:
-
timestamp | The base timestamp to be subtracted from the receiver. |
- Returns:
- The interval between timestamp and the receiver.
Convert this timestamp into a Julian date. Note that VCTimestamp can express a higher resolution than a Julian date, so some truncation may occur.
- Returns:
- The julian date representation of the receiver.
+ (id) timestampWithJulianDate: |
|
(double) |
jD |
|
Create a new, autoreleased timestamp that represents a Julian date.
- Parameters:
-
jD | A double representation of a Julian date |
- Returns:
- The new timestamp.
+ (id) timestampWithNSDate: |
|
(NSDate *) |
aDate |
|
Create a new, autoreleased timestamp from an NSDate object.
- Parameters:
-
aDate | An NSDate object. Must not be nil. Must not be the NSDate representations [NSDate distantPast] or [NSDate distantFuture]. |
- Returns:
- The new timestamp.
Create a new, autoreleased timestamp by subtracting an interval from an existing timestamp.
- Parameters:
-
timestamp | The base timestamp, from which an interval will be subtracted. |
interval | The interval to subtract |
- Returns:
- The new timestamp
Create a new, autoreleased timestamp by adding an interval to an existing timestamp.
- Parameters:
-
timestamp | The base timestamp, to which an interval will be added. |
interval | The interval to add |
- Returns:
- The new timestamp
The documentation for this class was generated from the following files:
- VCTimestamp.h
- VCTimestamp.mm