LibreOffice Module tools (master) 1
Functions | Variables
systemdatetime.hxx File Reference
#include <sal/types.h>
Include dependency graph for systemdatetime.hxx:
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ GetSystemDateTime()

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().

Variable Documentation

◆ HOUR_MASK

constexpr sal_Int64 HOUR_MASK = SAL_CONST_INT64(10000000000000)
constexpr

◆ MIN_MASK

constexpr sal_Int64 MIN_MASK = SAL_CONST_INT64(100000000000)
constexpr

◆ SEC_MASK

constexpr sal_Int64 SEC_MASK = SAL_CONST_INT64(1000000000)
constexpr