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
ebde06cb
Commit
ebde06cb
authored
Feb 06, 2002
by
Chris Withers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed un-necessary code.
parent
72184081
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
14 deletions
+1
-14
lib/python/DateTime/DateTime.py
lib/python/DateTime/DateTime.py
+1
-14
No files found.
lib/python/DateTime/DateTime.py
View file @
ebde06cb
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
##############################################################################
##############################################################################
"""Encapsulation of date/time values"""
"""Encapsulation of date/time values"""
__version__
=
'$Revision: 1.7
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.7
5
$'
[
11
:
-
2
]
import
re
,
sys
,
os
,
math
,
DateTimeZone
import
re
,
sys
,
os
,
math
,
DateTimeZone
...
@@ -1583,19 +1583,6 @@ class DateTime:
...
@@ -1583,19 +1583,6 @@ class DateTime:
"""Convert to floating-point number of seconds since the epoch (gmt)"""
"""Convert to floating-point number of seconds since the epoch (gmt)"""
return
float
(
self
.
_t
)
return
float
(
self
.
_t
)
def
debugCompare
(
self
,
dt
):
'''Compares the internal representation of the date with
the representation in dt. Allows sub-millisecond variations.
Primarily for testing.'''
return
self
.
millis
()
==
dt
.
millis
()
and
\
math
.
floor
(
self
.
_t
*
1000.0
)
==
\
math
.
floor
(
dt
.
_t
*
1000.0
)
and
\
math
.
floor
(
self
.
_d
*
86400000.0
)
==
\
math
.
floor
(
dt
.
_d
*
86400000.0
)
and
\
math
.
floor
(
self
.
time
*
86400000.0
)
==
\
math
.
floor
(
dt
.
time
*
86400000.0
)
def
_parse_iso8601
(
self
,
s
):
def
_parse_iso8601
(
self
,
s
):
try
:
try
:
return
self
.
__parse_iso8601
(
s
)
return
self
.
__parse_iso8601
(
s
)
...
...
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