Commit 433e9636 authored by 's avatar

fixed position of code merged from Zope-2_7-branch

parent 1e0590d4
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""Encapsulation of date/time values""" """Encapsulation of date/time values"""
__version__='$Revision: 1.93 $'[11:-2] __version__='$Revision: 1.94 $'[11:-2]
import os, re, math, DateTimeZone import os, re, math, DateTimeZone
...@@ -479,6 +479,12 @@ class DateTime: ...@@ -479,6 +479,12 @@ class DateTime:
__roles__=None __roles__=None
__allow_access_to_unprotected_subobjects__=1 __allow_access_to_unprotected_subobjects__=1
# Make class-specific exceptions available as attributes.
DateError = DateError
TimeError = TimeError
DateTimeError = DateTimeError
SyntaxError = SyntaxError
def __init__(self,*args, **kw): def __init__(self,*args, **kw):
"""Return a new date-time object """Return a new date-time object
...@@ -497,12 +503,6 @@ class DateTime: ...@@ -497,12 +503,6 @@ class DateTime:
then the current date/time is returned, represented in the then the current date/time is returned, represented in the
timezone of the local machine. timezone of the local machine.
# Make class-specific exceptions available as attributes.
DateError = DateError
TimeError = TimeError
DateTimeError = DateTimeError
SyntaxError = SyntaxError
- If the function is invoked with a single string argument - If the function is invoked with a single string argument
which is a recognized timezone name, an object representing which is a recognized timezone name, an object representing
the current time is returned, represented in the specified the current time is returned, represented in the specified
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment