summaryrefslogtreecommitdiff
path: root/Modules/datetimemodule.c
AgeCommit message (Expand)AuthorLines
2008-03-02Backport of r61180:Martin v. Löwis-0/+7
2004-06-07SF 952807: Unpickling pickled instances of subclasses ofTim Peters-6/+3
2003-10-20Backport checkin:Walter Dörwald-2/+2
2003-06-27SF bug #761337: datetime.strftime fails on trivial format stringRaymond Hettinger-1/+1
2003-05-18Added more words about the abuse of the tp_alloc nitems argumentTim Peters-1/+12
2003-05-17datetime.timedelta is now subclassable in Python. The new test showsTim Peters-165/+170
2003-05-17datetime.datetime and datetime.time can now be subclassed in Python. Brr.Tim Peters-30/+46
2003-05-16Turns out there wasn't a need to define tp_free for any of the types here.Tim Peters-4/+4
2003-05-16Stopped using the old macro form of _PyObject_Del.Tim Peters-4/+4
2003-05-02SF patch 731504: Typo in datetimemodule.c comment.Tim Peters-1/+1
2003-04-14The date class is now properly subclassable. (SF bug #720908)Guido van Rossum-5/+8
2003-02-08timedelta comparison and datetime addition: as the Python implementationTim Peters-4/+4
2003-02-07Comparison for timedelta, time, date and datetime objects: __eq__ andTim Peters-38/+52
2003-02-04Whitespace normalizationNeal Norwitz-1/+1
2003-02-01New functions alloc_{time,datetime}. Got rid of all setstate-likeTim Peters-168/+123
2003-02-01There's no good reason for datetime objects to expose __getstate__()Tim Peters-52/+4
2003-02-01Removed all uses of the out-of-favor __safe_for_unpickling__ magicTim Peters-27/+0
2003-02-01All over: changed comments to reflect pickling is straightforward now,Tim Peters-7/+5
2003-02-01delta_setstate(): This waS no longer referenced, so nukeit.Tim Peters-38/+2
2003-01-31The various datetime object __setstate__() methods are no longer publicTim Peters-116/+105
2003-01-31Backward branches are disgusting, at least when a forward branchTim Peters-6/+6
2003-01-30Change the approach to pickling to use __reduce__ everywhere. MostGuido van Rossum-238/+217
2003-01-24date and datetime comparison: when we don't know how toTim Peters-1/+13
2003-01-24Updated the astimezone() proof to recover from all the last week'sTim Peters-75/+92
2003-01-23Fix typoNeal Norwitz-1/+1
2003-01-23SF bug 660872: datetimetz constructors behave counterintuitively (2.3a1).Tim Peters-12/+20
2003-01-23Reimplemented datetime.now() to be useful.Tim Peters-7/+17
2003-01-23fromutc(): Repair incorrect failure return, as noted by NealN. Thanks!Tim Peters-1/+1
2003-01-23Bringing the code and test suite into line with doc and NEWS changesTim Peters-91/+126
2003-01-20New rule for tzinfo subclasses handling both standard and daylight time:Tim Peters-21/+3
2003-01-11Got rid of the internal datetimetz type.Tim Peters-1004/+635
2003-01-11Minor fiddling to make the next part easier. Introduced an internalTim Peters-17/+20
2003-01-10Get rid of compiler warningsNeal Norwitz-2/+2
2003-01-10Got rid of the timetz type entirely. This was a bit trickier than ITim Peters-475/+335
2003-01-10Removed more now-pointless pickle code.Tim Peters-93/+34
2003-01-08Deleted pickle/unpickle code for the old datetime and time classes -- it'sTim Peters-160/+0
2003-01-08Utterly minimal changes to collapse datetimetz into datetime, and timetzTim Peters-17/+10
2003-01-08Added a couple of casts to make this compile with CodeWarrior.Jack Jansen-3/+3
2003-01-04datetime_from_timet_and_us(): ignore leap seconds if the platformTim Peters-1/+10
2003-01-04A new implementation of astimezone() that does what we agreed on in allTim Peters-41/+35
2003-01-04Fix compiler warningNeal Norwitz-1/+1
2003-01-04Completed astimezone()'s correctness proof. This also proves we can getTim Peters-4/+53
2003-01-02The tzinfo methods utcoffset() and dst() must return a timedelta objectTim Peters-22/+14
2003-01-02astimezone() internals: if utcoffset() returns a duration, complain ifTim Peters-1/+5
2003-01-02The astimezone() correctness proof endured much pain to prove whatTim Peters-70/+43
2003-01-02SF bug 661086: datetime.today() truncates microseconds.Tim Peters-7/+16
2003-01-02Completed astimezone's correctness proof. That doesn't mean it'sTim Peters-4/+51
2003-01-01A quicker astimezone() implementation, rehabilitating an earlierTim Peters-65/+151
2003-01-01datetimetz_astimezone(): Speed optimizations -- although I'd ratherTim Peters-32/+38
2002-12-31A new, and much hairier, implementation of astimezone(), building onTim Peters-23/+125