[Python-checkins] python/nondist/sandbox/datetime doc.txt,1.14,1.15
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
2002年12月05日 16:20:36 -0800
Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv11684
Modified Files:
doc.txt
Log Message:
Fixed some more cut-n-paste datetime docs.
Index: doc.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/doc.txt,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** doc.txt 5 Dec 2002 23:27:06 -0000 1.14
--- doc.txt 6 Dec 2002 00:20:33 -0000 1.15
***************
*** 320,324 ****
a date object and a time object. Like a date object, datetime assumes
the current Gregorian calendar extended in both directions; like a time
! object, datetime assumes there are exact 3600*24 seconds in every day.
Constructor:
--- 320,324 ----
a date object and a time object. Like a date object, datetime assumes
the current Gregorian calendar extended in both directions; like a time
! object, datetime assumes there are exactly 3600*24 seconds in every day.
Constructor:
***************
*** 407,431 ****
MINYEAR or larger than MAXYEAR.
- XXX NOTHING BELOW THIS POINT HAS BEEN CHECKED, AND MUCH IS CERTAINLY
- XXX WRONG (CUT & PASTE ERRORS MOSTLY) AND/OR MISIMPLEMENTED.
-
- date1 - timedelta -> date2
! Computes the date2 such that date2 + timedelta == date1. This
! isn't quite equivalent to date1 + (-timedelta), because -timedelta
! in isolation can overflow in cases where date1 - timedelta does
! not. timedelta.seconds and timedelta.microseconds are ignored.
! - date1 - date2 -> timedelta
! This is exact, and cannot overflow. timedelta.seconds and
! timedelta.microseconds are 0, and date2 + timedelta == date1
! after.
! - comparison of date to date, where date1 is considered less than
! date2 when date1 precedes date2 in time. In other words,
! date1 < date2 if and only if date1.toordinal() < date2.toordinal().
- hash, use as dict key
- pickling
Instance methods:
--- 407,429 ----
MINYEAR or larger than MAXYEAR.
- date1 - timedelta -> date2
! Computes the datetime2 such that datetime2 + timedelta == datetime1.
! This isn't quite equivalent to datetime1 + (-timedelta), because
! -timedelta in isolation can overflow in cases where
! datetime1 - timedelta does not.
! - datetime1 - datetime2 -> timedelta
! This is exact, and cannot overflow.
! datetime2 + timedelta == datetime1 after.
! - comparison of datetime1 to datetime, where datetime1 is considered
! less than datetime2 when datetime1 precedes datetime2 in time.
- hash, use as dict key
- pickling
+
+ XXX NOTHING BELOW THIS POINT HAS BEEN CHECKED, AND MUCH IS CERTAINLY
+ XXX WRONG (CUT & PASTE ERRORS MOSTLY) AND/OR MISIMPLEMENTED.
Instance methods: