ObjFW  Diff

Differences From Artifact [8b872152c8]:

To Artifact [5aa753194e]:


165
166
167
168
169
170
171
172

173
174
175
176
177

178
179
180
181
182
183

184
185
186
187
188
189
190


191
192
193
194
195
196
197


198
199
200
201
202
203

204
205
206
207
208
209

210
211
212
213
214
215
216
165
166
167
168
169
170
171

172
173
174
175
176

177
178
179
180
181
182

183
184
185
186
187
188


189
190
191
192
193
194
195


196
197
198
199
200
201
202

203
204
205
206
207
208

209
210
211
212
213
214
215
216







-
+




-
+





-
+





-
-
+
+





-
-
+
+





-
+





-
+







+ (void)initialize
{
	if (self == [OFDate class])
		mutex = [[OFMutex alloc] init];
}
#endif

+ date
+ (instancetype)date
{
	return [[[self alloc] init] autorelease];
}

+ dateWithTimeIntervalSince1970: (double)seconds
+ (instancetype)dateWithTimeIntervalSince1970: (double)seconds
{
	return [[[self alloc]
	    initWithTimeIntervalSince1970: seconds] autorelease];
}

+ dateWithTimeIntervalSinceNow: (double)seconds
+ (instancetype)dateWithTimeIntervalSinceNow: (double)seconds
{
	return [[[self alloc]
	    initWithTimeIntervalSinceNow: seconds] autorelease];
}

+ dateWithDateString: (OFString*)string
	      format: (OFString*)format
+ (instancetype)dateWithDateString: (OFString*)string
			    format: (OFString*)format
{
	return [[[self alloc] initWithDateString: string
					  format: format] autorelease];
}

+ dateWithLocalDateString: (OFString*)string
		   format: (OFString*)format
+ (instancetype)dateWithLocalDateString: (OFString*)string
				 format: (OFString*)format
{
	return [[[self alloc] initWithLocalDateString: string
					       format: format] autorelease];
}

+ distantFuture
+ (instancetype)distantFuture
{
	return [[[self alloc]
	    initWithTimeIntervalSince1970: DBL_MAX] autorelease];
}

+ distantPast
+ (instancetype)distantPast
{
	return [[[self alloc]
	    initWithTimeIntervalSince1970: DBL_MIN] autorelease];
}

- init
{