Kea  1.5.0
boost_time_utils.h
Go to the documentation of this file.
1 // Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #ifndef KEA_BOOST_TIME_UTILS_H
8 #define KEA_BOOST_TIME_UTILS_H
9 
10 #include <boost/date_time/posix_time/posix_time.hpp>
11 #include <string>
12 
13 namespace isc {
14 namespace util {
15 
29 std::string ptimeToText(boost::posix_time::ptime t);
30 
37 std::string durationToText(boost::posix_time::time_duration dur);
38 
39 }; // end of isc::util namespace
40 }; // end of isc namespace
41 
42 #endif
std::string ptimeToText(boost::posix_time::ptime t)
Converts ptime structure to text.
std::string durationToText(boost::posix_time::time_duration dur)
Converts StatsDuration to text.
Defines the logger used by the top-level component of kea-dhcp-ddns.