LibreOffice
LibreOffice 6.0 SDK C/C++ API Reference
Classes | Typedefs | Functions
time.h File Reference
#include <sal/config.h>
#include <sal/saldllapi.h>
#include <sal/types.h>

Go to the source code of this file.

Classes

struct  TimeValue
 
struct  _oslDateTime
 

Typedefs

typedef struct _oslDateTime oslDateTime
 

Functions

SAL_DLLPUBLIC sal_Bool osl_getSystemTime (TimeValue *pTimeVal)
 Get the current system time as TimeValue. More...
 
SAL_DLLPUBLIC sal_Bool osl_getDateTimeFromTimeValue (const TimeValue *pTimeVal, oslDateTime *pDateTime)
 Get the GMT from a TimeValue and fill a struct oslDateTime. More...
 
SAL_DLLPUBLIC sal_Bool osl_getTimeValueFromDateTime (const oslDateTime *pDateTime, TimeValue *pTimeVal)
 Get the GMT from a oslDateTime and fill a TimeValue. More...
 
SAL_DLLPUBLIC sal_Bool osl_getLocalTimeFromSystemTime (const TimeValue *pSystemTimeVal, TimeValue *pLocalTimeVal)
 Convert GMT to local time. More...
 
SAL_DLLPUBLIC sal_Bool osl_getSystemTimeFromLocalTime (const TimeValue *pLocalTimeVal, TimeValue *pSystemTimeVal)
 Convert local time to GMT. More...
 
SAL_DLLPUBLIC sal_uInt32 osl_getGlobalTimer (void)
 Get the value of the global timer. More...
 

Typedef Documentation

typedef struct _oslDateTime oslDateTime

Function Documentation

SAL_DLLPUBLIC sal_Bool osl_getDateTimeFromTimeValue ( const TimeValue pTimeVal,
oslDateTime pDateTime 
)

Get the GMT from a TimeValue and fill a struct oslDateTime.

Parameters
[in]pTimeValTimeValue
[out]pDateTimeOn success it receives a struct oslDateTime
Returns
sal_False if any error occurs else sal_True.
SAL_DLLPUBLIC sal_uInt32 osl_getGlobalTimer ( void  )

Get the value of the global timer.

Returns
current timer value in milli seconds
SAL_DLLPUBLIC sal_Bool osl_getLocalTimeFromSystemTime ( const TimeValue pSystemTimeVal,
TimeValue pLocalTimeVal 
)

Convert GMT to local time.

Parameters
[in]pSystemTimeValsystem time to convert
[out]pLocalTimeValOn success it receives the local time
Returns
sal_False if any error occurs else sal_True.
SAL_DLLPUBLIC sal_Bool osl_getSystemTime ( TimeValue pTimeVal)

Get the current system time as TimeValue.

Return values
falseif any error occurs.
SAL_DLLPUBLIC sal_Bool osl_getSystemTimeFromLocalTime ( const TimeValue pLocalTimeVal,
TimeValue pSystemTimeVal 
)

Convert local time to GMT.

Parameters
[in]pLocalTimeVallocal time to convert
[out]pSystemTimeValOn success it receives the system time
Returns
sal_False if any error occurs else sal_True.
SAL_DLLPUBLIC sal_Bool osl_getTimeValueFromDateTime ( const oslDateTime pDateTime,
TimeValue pTimeVal 
)

Get the GMT from a oslDateTime and fill a TimeValue.

Parameters
[in]pDateTimeoslDateTime
[out]pTimeValOn success it receives a TimeValue
Returns
sal_False if any error occurs else sal_True.