|
Safir SDK Core
|
The Time class contains functions to operate on time. More...
#include <Safir/Time/TimeProvider.h>
Static Public Member Functions | |
| static SAFIR_HELPER_DLL_IMPORT Safir::Dob::Typesystem::Si64::Second | GetUtcTime () |
| Get current UTC time. | |
| static boost::posix_time::ptime | ToLocalTime (const Safir::Dob::Typesystem::Si64::Second utcTime) |
| Convert from UTC to local time. | |
| static Safir::Dob::Typesystem::Si64::Second | ToUtcTime (const boost::posix_time::ptime &localTime) |
| Convert local time to UTC time. | |
| static boost::posix_time::ptime | ToPtime (const Safir::Dob::Typesystem::Si64::Second utcTime) |
| Get specified UTC time in boost::posix_time::ptime representation. | |
| static Safir::Dob::Typesystem::Si64::Second | ToDouble (const boost::posix_time::ptime &utcTime) |
| Convert specified UTC time to a Double. | |
The Time class contains functions to operate on time.
|
static |
Get current UTC time.
|
static |
Convert specified UTC time to a Double.
| [in] | utcTime | - The UTC time |
Referenced by Safir::Time::AceTimeConverter::ToAceTime().
|
static |
Convert from UTC to local time.
| [in] | utcTime | - The time in UTC |
References ToPtime().
|
static |
Get specified UTC time in boost::posix_time::ptime representation.
| [in] | utcTime | - The UTC time |
Referenced by ToLocalTime(), and Safir::Time::AceTimeConverter::ToPtime().
|
static |
Convert local time to UTC time.
| [in] | localTime | - The local time |