Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
7c4b6ed0
Commit
7c4b6ed0
authored
Mar 14, 1997
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved to new Setup file based get-component strategy.
parent
14a329c7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
199 additions
and
154 deletions
+199
-154
lib/python/DateTime/DateTime.html
lib/python/DateTime/DateTime.html
+186
-152
lib/python/DateTime/DateTime.py
lib/python/DateTime/DateTime.py
+9
-2
lib/python/DateTime/DateTimeZone.py
lib/python/DateTime/DateTimeZone.py
+1
-0
lib/python/DateTime/Setup
lib/python/DateTime/Setup
+3
-0
No files found.
lib/python/DateTime/DateTime.html
View file @
7c4b6ed0
This diff is collapsed.
Click to expand it.
lib/python/DateTime/DateTime.py
View file @
7c4b6ed0
...
...
@@ -44,7 +44,7 @@
"""Encapsulation of date/time values"""
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
import
sys
,
os
,
regex
,
DateTimeZone
...
...
@@ -1215,7 +1215,14 @@ class DateTime:
def
__cmp__
(
self
,
obj
):
"""Compare a DateTime with another DateTime object, or
a float such as those returned by time.time()."""
a float such as those returned by time.time().
NOTE: __cmp__ support is provided for backward
compatibility only, and mixing DateTimes with
ExtensionClasses could cause __cmp__ to break.
You should use the methods lessThan, greaterThan,
lessThanEqualTo, greaterThanEqualTo, equalTo and
notEqualTo to avoid potential problems later!!"""
try
:
return
cmp
(
self
.
_d
,
obj
.
_d
)
except
AttributeError
:
return
cmp
(
self
.
_t
,
obj
)
...
...
lib/python/DateTime/DateTimeZone.py
0 → 100644
View file @
7c4b6ed0
This diff is collapsed.
Click to expand it.
lib/python/DateTime/Setup
0 → 100644
View file @
7c4b6ed0
# install DateTime.py
# install DateTimeZone.py
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment