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
7a4df510
Commit
7a4df510
authored
Dec 22, 1998
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed docs in regard to exceptions raised by the constructor.
parent
ba40732f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
lib/python/DateTime/DateTime.html
lib/python/DateTime/DateTime.html
+4
-2
lib/python/DateTime/DateTime.py
lib/python/DateTime/DateTime.py
+4
-3
No files found.
lib/python/DateTime/DateTime.html
View file @
7a4df510
...
...
@@ -210,8 +210,10 @@
</ul>
<p>
In all cases, invalid date, time, or timezone components will
raise a DateTimeError.
</p>
<p>
If a string argument passed to the DateTime constructor cannot be
parsed, it will raise DateTime.SyntaxError. Invalid date, time, or
timezone components will raise a DateTime.DateTimeError.
</p>
<p>
The module function Timezones() will return a list of the
timezones recognized by the DateTime module. Recognition of
...
...
lib/python/DateTime/DateTime.py
View file @
7a4df510
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Encapsulation of date/time values"""
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
9
$'
[
11
:
-
2
]
import
sys
,
os
,
regex
,
DateTimeZone
...
...
@@ -423,8 +423,9 @@ class DateTime:
effect of this is as if you had taken the value of time.time()
at that time on a machine in the specified timezone).
In all cases, invalid date, time, or timezone components will
raise a DateTimeError.
If a string argument passed to the DateTime constructor cannot be
parsed, it will raise DateTime.SyntaxError. Invalid date, time, or
timezone components will raise a DateTime.DateTimeError.
The module function Timezones() will return a list of the
timezones recognized by the DateTime module. Recognition of
...
...
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