blob: 96fb8024bcaca979b25be18b6cf4eb2a94261342 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <pch.hpp>
#include "p2Helpers.h"
template <>
VariableType &
operator<<<Common::DateTime>(VariableType & vt, const Common::DateTime & dt)
{
vt = boost::posix_time::ptime(boost::gregorian::date(dt.Year, dt.Month, dt.Day),
boost::posix_time::time_duration(dt.Hour, dt.Minute, 0));
return vt;
}
template <>
VariableType &
operator>>(VariableType & vt, short int & v)
{
v = (int)vt;
return vt;
}
|