20 #ifndef INCLUDED_OSL_TIME_H 21 #define INCLUDED_OSL_TIME_H 25 #if defined LIBO_INTERNAL_ONLY && defined __cplusplus 33 # pragma pack(push, 8) 38 #if defined LIBO_INTERNAL_ONLY && defined __cplusplus 43 constexpr
TimeValue(sal_uInt32 seconds, sal_uInt32 nanoseconds):
46 template<
typename Rep,
typename Period> constexpr
47 TimeValue(std::chrono::duration<Rep, Period>
const & duration):
49 std::chrono::duration_cast<std::chrono::nanoseconds>(
50 duration).count() / 1000000000),
52 std::chrono::duration_cast<std::chrono::nanoseconds>(
53 duration).count() % 1000000000)
179 #endif // INCLUDED_OSL_TIME_H
SAL_DLLPUBLIC sal_uInt32 osl_getGlobalTimer(void)
Get the value of the global timer.
SAL_DLLPUBLIC sal_Bool osl_getSystemTimeFromLocalTime(const TimeValue *pLocalTimeVal, TimeValue *pSystemTimeVal)
Convert local time to GMT.
#define SAL_DLLPUBLIC
Definition: saldllapi.h:30
SAL_DLLPUBLIC sal_Bool osl_getDateTimeFromTimeValue(const TimeValue *pTimeVal, oslDateTime *pDateTime)
Get the GMT from a TimeValue and fill a struct oslDateTime.
sal_uInt32 Seconds
Definition: time.h:67
unsigned char sal_Bool
Definition: types.h:38
sal_uInt16 DayOfWeek
is the day of week (0-6 , 0 : Sunday).
Definition: time.h:109
sal_uInt16 Month
is the month of year (1-12).
Definition: time.h:113
sal_uInt16 Seconds
contains the seconds (0-59).
Definition: time.h:93
sal_Int16 Year
is the year.
Definition: time.h:117
SAL_DLLPUBLIC sal_Bool osl_getTimeValueFromDateTime(const oslDateTime *pDateTime, TimeValue *pTimeVal)
Get the GMT from a oslDateTime and fill a TimeValue.
sal_uInt16 Day
is the day of month (1-31).
Definition: time.h:105
struct _oslDateTime oslDateTime
sal_uInt16 Minutes
contains the minutes (0-59).
Definition: time.h:97
sal_uInt32 NanoSeconds
contains the nanoseconds
Definition: time.h:89
SAL_DLLPUBLIC sal_Bool osl_getSystemTime(TimeValue *pTimeVal)
Get the current system time as TimeValue.
sal_uInt32 Nanosec
Definition: time.h:68
sal_uInt16 Hours
contains the hour (0-23).
Definition: time.h:101
SAL_DLLPUBLIC sal_Bool osl_getLocalTimeFromSystemTime(const TimeValue *pSystemTimeVal, TimeValue *pLocalTimeVal)
Convert GMT to local time.