summaryrefslogtreecommitdiffstats
path: root/pykolab/xml/__init__.py
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-07-13 13:39:02 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-07-13 13:39:02 +0200
commitbbabfa8913b349c79023df2fcfba79b257ddc7d4 (patch)
treea900d6302e8d1f4b10a5ee2dd6e3f40cf6cc41e0 /pykolab/xml/__init__.py
parent02b4f24ca5cf66fd108f723cb4bfb6319a9d93a8 (diff)
downloadpykolab-bbabfa8913b349c79023df2fcfba79b257ddc7d4.tar.gz
Add utils.to_dt() as a convenience function to transform a d or dt into a datetime (with timezone) for comparison in resource management
Diffstat (limited to 'pykolab/xml/__init__.py')
-rw-r--r--pykolab/xml/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/xml/__init__.py b/pykolab/xml/__init__.py
index db12a33..5ca2837 100644
--- a/pykolab/xml/__init__.py
+++ b/pykolab/xml/__init__.py
@@ -10,6 +10,8 @@ from event import InvalidEventDateError
from event import event_from_ical
from event import event_from_string
+from utils import to_dt
+
__all__ = [
"Attendee",
"Contact",
@@ -17,6 +19,7 @@ __all__ = [
"Event",
"event_from_ical",
"event_from_string",
+ "to_dt",
]
errors = [