LibreOffice Module tools (master) 1
|
#include <sal/types.h>
Go to the source code of this file.
Functions | |
bool | GetSystemDateTime (sal_Int32 *pDate, sal_Int64 *pTime) |
Get current local timestamp. More... | |
Variables | |
constexpr sal_Int64 | SEC_MASK = SAL_CONST_INT64(1000000000) |
constexpr sal_Int64 | MIN_MASK = SAL_CONST_INT64(100000000000) |
constexpr sal_Int64 | HOUR_MASK = SAL_CONST_INT64(10000000000000) |
bool GetSystemDateTime | ( | sal_Int32 * | pDate, |
sal_Int64 * | pTime | ||
) |
Get current local timestamp.
Both pDate and pTime can be null. Returns true if succeeded, false otherwise.
Definition at line 52 of file systemdatetime.cxx.
References tm.
Referenced by Date::Date(), DateTime::DateTime(), and tools::Time::Time().
|
constexpr |
Definition at line 14 of file systemdatetime.hxx.
Referenced by tools::Time::init(), tools::Time::SetHour(), tools::Time::SetMin(), tools::Time::SetNanoSec(), and tools::Time::SetSec().
|
constexpr |
Definition at line 13 of file systemdatetime.hxx.
Referenced by tools::Time::init(), tools::Time::SetHour(), tools::Time::SetMin(), tools::Time::SetNanoSec(), and tools::Time::SetSec().
|
constexpr |
Definition at line 12 of file systemdatetime.hxx.
Referenced by tools::Time::init(), tools::Time::SetHour(), tools::Time::SetMin(), tools::Time::SetNanoSec(), and tools::Time::SetSec().