The AceTimeConverter class provides functions to convert to/from ACE time.
More...
#include <Safir/Time/AceTimeConverter.h>
The AceTimeConverter class provides functions to convert to/from ACE time.
Get specified time in ACE Time representation.
- Parameters
-
- Returns
- The time in ACE_Time_Value
Referenced by ToAceTime().
ACE_Time_Value Safir::Time::AceTimeConverter::ToAceTime |
( |
const boost::posix_time::time_duration & |
duration | ) |
|
|
static |
Get specified boost time duration in ACE Time representation.
- Parameters
-
[in] | duration | - The time duration |
- Returns
- The time in ACE_Time_Value
ACE_Time_Value Safir::Time::AceTimeConverter::ToAceTime |
( |
const boost::posix_time::ptime & |
time | ) |
|
|
static |
Convert specified ACE time to a Double.
- Parameters
-
- Returns
- Seconds and fraction since jan 1 1970 00:00
Referenced by ToPtime().
boost::posix_time::ptime Safir::Time::AceTimeConverter::ToPtime |
( |
const ACE_Time_Value & |
utcTime | ) |
|
|
static |
Get specified ACE time in boost::posix_time::ptime representation.
- Parameters
-
[in] | utcTime | - The UTC time |
- Returns
- The UTC time stored in a boost::posix_time::ptime object
References ToDouble(), and Safir::Time::TimeProvider::ToPtime().