@@ -39,28 +39,28 @@ namespace dot
3939 // / library does not accept the date 0001-01-01, we will instead use the Unix epoch
4040 // / 1970-01-01 as default constructed value.
4141 local_date_time::local_date_time ()
42- : ptime(local_date{ 1970 , 1 , 1 }, { 0 , 0 , 0 })
42+ : boost::posix_time:: ptime(local_date{ 1970 , 1 , 1 }, { 0 , 0 , 0 })
4343 {
4444 }
4545
4646 // / Initializes a new instance of the local_date_time struct using the ISO calendar system.
4747 local_date_time::local_date_time (int year, int month, int day, int hour, int minute)
48- : ptime(local_date {year, month, day}, {hour, minute, 0 })
48+ : boost::posix_time:: ptime(local_date {year, month, day}, {hour, minute, 0 })
4949 {}
5050
5151 // / Initializes a new instance of the local_date_time struct using the ISO calendar system.
5252 local_date_time::local_date_time (int year, int month, int day, int hour, int minute, int second)
53- : ptime(local_date {year, month, day}, {hour, minute, second})
53+ : boost::posix_time:: ptime(local_date {year, month, day}, {hour, minute, second})
5454 {}
5555
5656 // / Initializes a new instance of the local_date_time struct using the ISO calendar system.
5757 local_date_time::local_date_time (int year, int month, int day, int hour, int minute, int second, int millisecond)
58- : ptime(local_date {year, month, day}, {hour, minute, second, millisecond * 1000 })
58+ : boost::posix_time:: ptime(local_date {year, month, day}, {hour, minute, second, millisecond * 1000 })
5959 {}
6060
6161 // / Create from Boost posix_time.
62- local_date_time::local_date_time (const ptime& time)
63- : ptime(time)
62+ local_date_time::local_date_time (const boost::posix_time:: ptime& time)
63+ : boost::posix_time:: ptime(time)
6464 {}
6565
6666 local_date_time::local_date_time (const local_date_time& other)
@@ -69,7 +69,7 @@ namespace dot
6969 }
7070
7171 local_date_time::local_date_time (const local_date& date, const local_time& time) :
72- ptime (date, time)
72+ boost::posix_time:: ptime (date, time)
7373 {}
7474
7575 local_date_time::local_date_time (object const & rhs) { *this = rhs.operator local_date_time (); }
@@ -179,46 +179,46 @@ namespace dot
179179
180180 local_date_time local_date_time::operator +(const period& period) const
181181 {
182- return static_cast <ptime>(*this ) + static_cast <time_duration>(period);
182+ return static_cast <boost::posix_time:: ptime>(*this ) + static_cast <boost::posix_time:: time_duration>(period);
183183 }
184184
185185 bool local_date_time::operator ==(const local_date_time& other) const
186186 {
187- return static_cast <ptime>(*this ) == static_cast <ptime>(other);
187+ return static_cast <boost::posix_time:: ptime>(*this ) == static_cast <boost::posix_time:: ptime>(other);
188188 }
189189
190190 bool local_date_time::operator !=(const local_date_time& other) const
191191 {
192- return static_cast <ptime>(*this ) != static_cast <ptime>(other);
192+ return static_cast <boost::posix_time:: ptime>(*this ) != static_cast <boost::posix_time:: ptime>(other);
193193 }
194194
195195 bool local_date_time::operator >(const local_date_time& other) const
196196 {
197- return static_cast <ptime>(*this ) > static_cast <ptime>(other);
197+ return static_cast <boost::posix_time:: ptime>(*this ) > static_cast <boost::posix_time:: ptime>(other);
198198 }
199199
200200 bool local_date_time::operator >=(const local_date_time& other) const
201201 {
202- return static_cast <ptime>(*this ) >= static_cast <ptime>(other);
202+ return static_cast <boost::posix_time:: ptime>(*this ) >= static_cast <boost::posix_time:: ptime>(other);
203203 }
204204
205205 bool local_date_time::operator <(const local_date_time& other) const
206206 {
207- return static_cast <ptime>(*this ) < static_cast <ptime>(other);
207+ return static_cast <boost::posix_time:: ptime>(*this ) < static_cast <boost::posix_time:: ptime>(other);
208208 }
209209
210210 bool local_date_time::operator <=(const local_date_time& other) const
211211 {
212- return static_cast <ptime>(*this ) <= static_cast <ptime>(other);
212+ return static_cast <boost::posix_time:: ptime>(*this ) <= static_cast <boost::posix_time:: ptime>(other);
213213 }
214214
215215 period local_date_time::operator -(const local_date_time& other) const
216216 {
217- return static_cast <ptime>(*this ) - static_cast <ptime>(other);
217+ return static_cast <boost::posix_time:: ptime>(*this ) - static_cast <boost::posix_time:: ptime>(other);
218218 }
219219
220220 local_date_time local_date_time::operator -(const period& period) const
221221 {
222- return static_cast <ptime>(*this ) - static_cast <time_duration>(period);
222+ return static_cast <boost::posix_time:: ptime>(*this ) - static_cast <boost::posix_time:: time_duration>(period);
223223 }
224224}
0 commit comments