ObjFW  Diff

Differences From Artifact [8f39732833]:

  • File src/OFDate.h — part of check-in [95830bf78b] at 2020-07-25 09:58:24 on branch tagged-pointers — OFDate: Prepare for tagged pointers

    This replaces all ivar accesses with calls to -[timeIntervalSince1970]
    (except for initializers and -[timeIntervalSince1970] itself, which is
    the only method accessing an ivar and will be overridden for tagged
    pointers), returns a placeholder for +[alloc] and makes +[distantFuture]
    and +[distantPast] singletons. (user: js, size: 9295) [annotate] [blame] [check-ins using]

To Artifact [c713751502]:


215
216
217
218
219
220
221
222


223
224
225
226
227
228
229
215
216
217
218
219
220
221

222
223
224
225
226
227
228
229
230







-
+
+







/*!
 * @brief Initializes an already allocated OFDate with the specified date and
 *	  time since 1970-01-01T00:00:00Z.
 *
 * @param seconds The seconds since 1970-01-01T00:00:00Z
 * @return An initialized OFDate with the specified date and time
 */
- (instancetype)initWithTimeIntervalSince1970: (of_time_interval_t)seconds;
- (instancetype)initWithTimeIntervalSince1970: (of_time_interval_t)seconds
    OF_DESIGNATED_INITIALIZER;

/*!
 * @brief Initializes an already allocated OFDate with the specified date and
 *	  time since now.
 *
 * @param seconds The seconds since now
 * @return An initialized OFDate with the specified date and time