summaryrefslogtreecommitdiff
path: root/Lib/test/test_datetime.py
AgeCommit message (Expand)AuthorLines
2004-09-16SF bug #1028306: date-datetime comparisonTim Peters-0/+43
2004-06-20Bug 975996: Add _PyTime_DoubleToTimet to C APITim Peters-0/+27
2004-06-07SF 952807: Unpickling pickled instances of subclasses of datetime.date,Tim Peters-0/+34
2004-03-21SF bug 847019 datetime.datetime initialization needs more strict checkingTim Peters-0/+20
2003-06-27SF bug #761337: datetime.strftime fails on trivial format stringRaymond Hettinger-0/+1
2003-05-17datetime.timedelta is now subclassable in Python. The new test showsTim Peters-0/+31
2003-05-17datetime.datetime and datetime.time can now be subclassed in Python. Brr.Tim Peters-31/+131
2003-05-17test_subclass_date(): Beefed this up, to check that new instanceTim Peters-2/+28
2003-04-14The date class is now properly subclassable. (SF bug #720908)Guido van Rossum-0/+6
2003-02-19Whitespace normalization.Tim Peters-11/+11
2003-02-08The Python implementation of datetime was changed in ways that no longerTim Peters-31/+10
2003-02-07Comparison for timedelta, time, date and datetime objects: __eq__ andTim Peters-18/+68
2003-02-07Merge the test part of the below checkin to the sandbox and Zope3, soGuido van Rossum-0/+8
2003-02-06SF bug 680864: test_datetime fails for non-unix epochTim Peters-12/+11
2003-02-05Build pickler_choices list in a lazier way.Tim Peters-16/+5
2003-02-03cPickle now implements enough of protocol 2 to enable allGuido van Rossum-3/+3
2003-02-01There's no good reason for datetime objects to expose __getstate__()Tim Peters-12/+0
2003-01-31Changed the tests to stop using __setstate__(). __setstate__() noTim Peters-65/+31
2003-01-30Change the approach to pickling to use __reduce__ everywhere. MostGuido van Rossum-53/+49
2003-01-24date and datetime comparison: when we don't know how toTim Peters-0/+38
2003-01-23SF bug 660872: datetimetz constructors behave counterintuitively (2.3a1).Tim Peters-1/+15
2003-01-23Reimplemented datetime.now() to be useful.Tim Peters-2/+20
2003-01-23Bringing the code and test suite into line with doc and NEWS changesTim Peters-28/+90
2003-01-20New rule for tzinfo subclasses handling both standard and daylight time:Tim Peters-20/+27
2003-01-11Got rid of the internal datetimetz type.Tim Peters-1/+1
2003-01-10Got rid of the timetz type entirely. This was a bit trickier than ITim Peters-1/+1
2003-01-08Utterly minimal changes to collapse datetimetz into datetime, and timetzTim Peters-68/+89
2003-01-04A new implementation of astimezone() that does what we agreed on in allTim Peters-16/+33
2003-01-02The tzinfo methods utcoffset() and dst() must return a timedelta objectTim Peters-32/+40
2003-01-02astimezone() internals: if utcoffset() returns a duration, complain ifTim Peters-0/+17
2003-01-01A quicker astimezone() implementation, rehabilitating an earlierTim Peters-0/+25
2003-01-01The failure of the last-second addition to the timezone coversion test isTim Peters-4/+12
2002-12-31A new, and much hairier, implementation of astimezone(), building onTim Peters-86/+86
2002-12-30A step on the way to making tzinfo classes writable by mortals: get ridTim Peters-17/+38
2002-12-30Added tests that conversion to our own timezone is always an identity,Tim Peters-0/+13
2002-12-30Beefed up the timezone conversion test by adding a phony UTC zone that'sTim Peters-66/+80
2002-12-29A start at non-trivial (== DST-aware) tests of timezone conversion.Tim Peters-0/+152
2002-12-27Make comparison and subtraction of aware objects ignore tzinfo if theTim Peters-8/+86
2002-12-26Added tests to ensure that timetz comparison, and datetimetzTim Peters-9/+67
2002-12-25Implemented datetime.astimezone() and datetimetz.astimezone().Tim Peters-0/+53
2002-12-24Whitespace normalization.Tim Peters-1/+1
2002-12-24Implemented .replace() methods for date, datetime, datetimetz, time andTim Peters-0/+150
2002-12-22I give up: unless I write my own strftime by hand, datetime just can'tTim Peters-0/+6
2002-12-22Implemented a Wiki suggestion:Tim Peters-71/+118
2002-12-21Added test to ensure that non-string result from dst() raises TypeError.Tim Peters-0/+6
2002-12-21Changes sufficient so that pickles written by the Python implementationTim Peters-9/+15
2002-12-20format_utcoffset(): The natural type of the buflen arg is size_t, soTim Peters-9/+16
2002-12-16Made this a little more compatible w/ the sandbox version, which isTim Peters-2/+2
2002-12-16datetime escapes the sandbox. The Windows build is all set. I leave itTim Peters-0/+2128