#include "ndn-cxx/util/time.hpp"
#include "ndn-cxx/util/time-custom-clock.hpp"
#include <boost/date_time/posix_time/posix_time.hpp>
#include <sstream>
Go to the source code of this file.
|
| system_clock::time_point | ndn::time::fromIsoExtendedString (const std::string &isoString) |
| | Convert from the ISO 8601 extended string format (YYYY-MM-DDTHH:MM:SS,fffffffff) to the internal time format.
|
| |
| system_clock::time_point | ndn::time::fromIsoString (const std::string &isoString) |
| | Convert from the ISO 8601 basic string format (YYYYMMDDTHHMMSS,fffffffff) to the internal time format.
|
| |
| system_clock::time_point | ndn::time::fromString (const std::string &timePointStr, const std::string &format="%Y-%m-%d %H:%M:%S", const std::locale &locale=std::locale("C")) |
| | Convert from string of specified format into time point.
|
| |
| const system_clock::time_point & | ndn::time::getUnixEpoch () |
| | Return a system_clock::time_point representing the UNIX time epoch, i.e., 00:00:00 UTC on 1 January 1970.
|
| |
| void | ndn::time::setCustomClocks (std::shared_ptr< CustomSteadyClock > steadyClock=nullptr, std::shared_ptr< CustomSystemClock > systemClock=nullptr) |
| | Set custom system and steady clocks.
|
| |
| std::string | ndn::time::toIsoExtendedString (const system_clock::time_point &timePoint) |
| | Convert to the ISO 8601 string representation, extended format (YYYY-MM-DDTHH:MM:SS,fffffffff).
|
| |
| std::string | ndn::time::toIsoString (const system_clock::time_point &timePoint) |
| | Convert to the ISO 8601 string representation, basic format (YYYYMMDDTHHMMSS,fffffffff).
|
| |
| std::string | ndn::time::toString (const system_clock::time_point &timePoint, const std::string &format="%Y-%m-%d %H:%M:%S", const std::locale &locale=std::locale("C")) |
| | Convert time point to string with specified format.
|
| |