blob: eafb43f0a45278e2a3fa95b370751e278bece328 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# vim: set filencoding=utf8
"""
Exchange Server Handling Code
@author: Mike Crute (mcrute@gmail.com)
@organization: SoftGroup Interactive, Inc.
@date: April 26, 2009
"""
from datetime import tzinfo, timedelta
class ExchangeException(Exception):
"Exception that is thrown by all Exchange handling code."
class AuthenticationException(ExchangeException):
"Exception that is raised when authentication fails."
class EST(tzinfo):
def tzname(self, dt):
return "EST"
def utcoffset(self, dt):
return timedelta(0)
dst = utcoffset
|