Martin Carlberg
6c49116c68
Fixed: Use date string that is not as old as the previous one.
...
JavaScript now handles time a lot better. Times from before around 1900 is different in different
parts of the world so we just changed this test case to be a bit more modern.
2021-09-21 10:55:16 +02:00
Alexander Ljungberg
7c6ef51cb2
New: CPDate dateByAddingTimeInterval:.
...
Refs #2126 .
2014-06-03 17:41:35 +01:00
Alexander Ljungberg
6281c6469b
Fix unit test warnings.
2013-01-24 00:08:47 +00:00
Alexander Ljungberg
55709cb83a
Test CPDate testInitWithString with a date prior to 1970.
...
This verifies that there are no problems with negative time intervals.
2012-06-02 13:18:58 -07:00
Alexander Ljungberg
d0c7796e7c
Match CPDate distantPast and distantFuture with Cocoa.
2012-06-02 13:17:34 -07:00
Alexander Ljungberg
25763962b2
Code formatting.
2012-06-02 11:53:04 -07:00
Alexander Ljungberg
fc858933be
Re #1556 . Make CPDate testSince1970 agree with new reference date.
2012-06-02 11:32:19 -07:00
Alexander Ljungberg
6877aaaf61
Re #1556 . Unit test CPDate dateWithTimeIntervalSinceReferenceDate:.
2012-06-02 11:27:19 -07:00
Blair Duncan
74431972d8
added missing LOG math global and replaced any math. with correspoinding global
2012-05-10 08:55:19 -04:00
Alexander Ljungberg
e327c39776
Code formatting.
2011-04-10 17:26:22 -04:00
Alexander Ljungberg
c7a1717ebe
Added CPDate test which catches mishandling of timezones in initWithString.
...
(Unfortunately the test is rather crude and only works when your current timezone offset is not 0 (UTC).)
2011-04-10 17:24:18 -04:00
Alexey Borzenkov
4678efff72
Fix #1063 [CPDate description] returns incorrect timezone + tests
2010-12-28 23:42:06 +03:00
Alexander Ljungberg
51825db716
Fixed: [CPDate description] did not generate a correct date for users in timezones with a negative timezone offset.
2010-06-10 10:49:49 -07:00
Ross Boucher
ef4c108b9e
Date test wasn't accurately accounting for daylight savings time.
2010-03-22 15:08:29 -07:00
Alexander Ljungberg
f89c2e0ba9
Fixed: CPDates compared equal to nil and CPNull.
2010-02-09 10:59:59 -08:00
Alexander Ljungberg
a3f9b65501
Implemented [CPDate copy] with unit test. Also whitespace cleanup in CPDate.
2010-02-09 01:57:24 -05:00
Ross Boucher
44fbf8afe2
Add support for encoding dates, courtesy of luddep.
2009-11-24 23:02:38 -05:00
Alexander Ljungberg
b7da92d225
CPDate initWithString: now takes proper international format strings like NSDate. Similarly CPDate description generates such strings.
2009-11-24 22:42:02 -05:00
tlrobinson
ff6487caf3
import -> @import in Tests and NibApp
2009-04-27 20:32:59 -07:00
Landon Fuller
1da9e93241
Implement support for UNIX epoch initialization.
...
Add support for the +[CPDate dateWithTimeIntervalSince1970:]
and -[CPDate initWithTimeIntervalSince1970].
2009-02-26 17:13:37 -08:00
Tom Robinson
bf5381e1a3
Initial commit of CPDate and an OJUnit test for CPDate
2008-09-12 22:39:51 -07:00