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
d980b46d
Commit
d980b46d
authored
Oct 21, 2003
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
93e0d14d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/DateTime/DateTime.py
lib/python/DateTime/DateTime.py
+4
-3
No files found.
doc/CHANGES.txt
View file @
d980b46d
...
@@ -16,6 +16,8 @@ Zope Changes
...
@@ -16,6 +16,8 @@ Zope Changes
Bugs fixed
Bugs fixed
- Collector #951: DateTime(None) now raises a proper SyntaxError
- Collector #1056: aq_acquire() ignored the default argument
- Collector #1056: aq_acquire() ignored the default argument
- Collector #1087: ZPT: "repeat/item/length" did not work as documented
- Collector #1087: ZPT: "repeat/item/length" did not work as documented
...
...
lib/python/DateTime/DateTime.py
View file @
d980b46d
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
##############################################################################
##############################################################################
"""Encapsulation of date/time values"""
"""Encapsulation of date/time values"""
__version__
=
'$Revision: 1.8
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.8
7
$'
[
11
:
-
2
]
import
os
,
re
,
math
,
DateTimeZone
import
os
,
re
,
math
,
DateTimeZone
...
@@ -632,10 +632,11 @@ class DateTime:
...
@@ -632,10 +632,11 @@ class DateTime:
ac
=
len
(
args
)
ac
=
len
(
args
)
millisecs
=
None
millisecs
=
None
if
ac
and
args
[
0
]
==
None
:
return
if
ac
and
args
[
0
]
==
None
:
raise
self
.
SyntaxError
,
None
elif
ac
==
10
:
elif
ac
==
10
:
# Internal format called only by DateTime
# Internal format called only by DateTime
yr
,
mo
,
dy
,
hr
,
mn
,
sc
,
tz
,
t
,
d
,
s
=
args
yr
,
mo
,
dy
,
hr
,
mn
,
sc
,
tz
,
t
,
d
,
s
=
args
elif
ac
==
11
:
elif
ac
==
11
:
# Internal format that includes milliseconds.
# Internal format that includes milliseconds.
yr
,
mo
,
dy
,
hr
,
mn
,
sc
,
tz
,
t
,
d
,
s
,
millisecs
=
args
yr
,
mo
,
dy
,
hr
,
mn
,
sc
,
tz
,
t
,
d
,
s
,
millisecs
=
args
...
...
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