@@ -31,17 +31,17 @@ * \return A new, autoreleased OFDate with the current date and time */ + date; /** - * \param sec The seconds since 1970-01-01 00:00:00 + * \param sec The seconds since 1970-01-01T00:00:00Z * \return A new, autoreleased OFDate with the specified date and time */ + dateWithTimeIntervalSince1970: (int64_t)sec; /** - * \param sec The seconds since 1970-01-01 00:00:00 + * \param sec The seconds since 1970-01-01T00:00:00Z * \param usec The microsecond part of the time * \return A new, autoreleased OFDate with the specified date and time */ + dateWithTimeIntervalSince1970: (int64_t)sec microseconds: (uint32_t)usec; @@ -75,19 +75,19 @@ + distantPast; /** * Initializes an already allocated OFDate with the specified date and time. * - * \param sec The seconds since 1970-01-01 00:00:00 + * \param sec The seconds since 1970-01-01T00:00:00Z * \return An initialized OFDate with the specified date and time */ - initWithTimeIntervalSince1970: (int64_t)sec; /** * Initializes an already allocated OFDate with the specified date and time. * - * \param sec The seconds since 1970-01-01 00:00:00 + * \param sec The seconds since 1970-01-01T00:00:00Z * \param usec The microsecond part of the time * \return An initialized OFDate with the specified date and time */ - initWithTimeIntervalSince1970: (int64_t)sec microseconds: (uint32_t)usec; @@ -211,10 +211,30 @@ * \param date Another date * \return The later date of the two dates */ - (OFDate*)laterDate: (OFDate*)date; +/** + * \return The seconds since 1970-01-01T00:00:00Z + */ +- (int64_t)timeIntervalSince1970; + +/** + * \return The microseconds part of the seconds since 1970-01-01T00:00:00Z + */ +- (uint32_t)microsecondsOfTimeIntervalSince1970; + +/** + * \return The seconds the date is after the receiver + */ +- (int64_t)timeIntervalSinceDate: (OFDate*)date; + +/** + * \return The microseconds part of the seconds the date is after the receiver + */ +- (uint32_t)microsecondsOfTimeIntervalSinceDate: (OFDate*)date; + /** * Returns a new date with the specified time interval added. * * \param sec The seconds after the date * \return A new, autoreleased OFDate