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
b2a42f85
Commit
b2a42f85
authored
May 15, 2006
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap long lines.
parent
552c6d3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
lib/python/DateTime/tests/testDateTime.py
lib/python/DateTime/tests/testDateTime.py
+6
-3
No files found.
lib/python/DateTime/tests/testDateTime.py
View file @
b2a42f85
...
...
@@ -336,10 +336,12 @@ class DateTimeTests(unittest.TestCase):
try
:
d_us
=
DateTime
(
"%d/%d/%d"
%
(
year
,
month
,
day
))
except
:
continue
d_int
=
DateTime
(
"%d.%d.%d"
%
(
day
,
month
,
year
),
datefmt
=
"international"
)
d_int
=
DateTime
(
"%d.%d.%d"
%
(
day
,
month
,
year
),
datefmt
=
"international"
)
self
.
assertEqual
(
d_us
,
d_int
)
d_int
=
DateTime
(
"%d/%d/%d"
%
(
day
,
month
,
year
),
datefmt
=
"international"
)
d_int
=
DateTime
(
"%d/%d/%d"
%
(
day
,
month
,
year
),
datefmt
=
"international"
)
self
.
assertEqual
(
d_us
,
d_int
)
def
test_calcTimezoneName
(
self
):
...
...
@@ -371,7 +373,8 @@ class DateTimeTests(unittest.TestCase):
'''Checks time zone in dates <= 1900 or >= 2038'''
dt1
=
DateTime
(
'2040/01/30 14:33 GMT+1'
)
dt2
=
DateTime
(
'2040/01/30 11:33 GMT-2'
)
self
.
assertEqual
(
dt1
.
strftime
(
'%d/%m/%Y %H:%M'
),
dt2
.
strftime
(
'%d/%m/%Y %H:%M'
))
self
.
assertEqual
(
dt1
.
strftime
(
'%d/%m/%Y %H:%M'
),
dt2
.
strftime
(
'%d/%m/%Y %H:%M'
))
def
testStrftimeUnicode
(
self
):
dt
=
DateTime
(
'2002-05-02T08:00:00+00:00'
)
...
...
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