LibreOffice Module tools (master) 1
Functions
systemdatetime.cxx File Reference
#include <sys/time.h>
#include <time.h>
#include <osl/diagnose.h>
#include <systemdatetime.hxx>
Include dependency graph for systemdatetime.cxx:

Go to the source code of this file.

Functions

bool GetSystemDateTime (sal_Int32 *pDate, sal_Int64 *pTime)
 Get current local timestamp. More...
 

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