diff options
Diffstat (limited to 'p2pvr/ice/converters.cpp')
-rw-r--r-- | p2pvr/ice/converters.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/p2pvr/ice/converters.cpp b/p2pvr/ice/converters.cpp index 94f2353..23861f8 100644 --- a/p2pvr/ice/converters.cpp +++ b/p2pvr/ice/converters.cpp @@ -30,4 +30,18 @@ IceConvert<Common::Duration>::FromVariable(const VariableType & d) { return *d.as<boost::posix_time::time_duration>(); } + +namespace Slicer { + Common::DateTime + ptimeToDateTime(boost::posix_time::ptime const & p) + { + return *p; + } + + boost::posix_time::ptime + dateTimeToPTime(Common::DateTime const & c) + { + return *c; + } +} |