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

|
static |
Convert from UTC to local time.
| [in] | utcTime | - The time in UTC |
|
static |
Get specified UTC time in boost::posix_time::ptime representation.
| [in] | utcTime | - The UTC time |
Referenced by Safir::Databases::Odbc::TimeColumn::SetValue(), and Safir::Time::AceTimeConverter::ToPtime().

|
static |
Convert local time to UTC time.
| [in] | localTime | - The local time |