24#ifndef INCLUDED_OSL_TIME_H 
   25#define INCLUDED_OSL_TIME_H 
   29#if defined LIBO_INTERNAL_ONLY 
   30#if defined __cplusplus 
   48#if defined LIBO_INTERNAL_ONLY && defined __cplusplus 
   51    TimeValue() = 
default;
 
   53    constexpr TimeValue(sal_uInt32 seconds, sal_uInt32 nanoseconds):
 
   56    template<
typename Rep, 
typename Period> 
constexpr 
   57    TimeValue(std::chrono::duration<Rep, Period> 
const & duration):
 
   59            std::chrono::duration_cast<std::chrono::nanoseconds>(
 
   60                duration).count() / 1000000000),
 
   62            std::chrono::duration_cast<std::chrono::nanoseconds>(
 
   63                duration).count() % 1000000000)
 
#define SAL_DLLPUBLIC
Definition saldllapi.h:34
unsigned char sal_Bool
Definition types.h:38
SAL_DLLPUBLIC sal_Bool osl_getTimeValueFromDateTime(const oslDateTime *pDateTime, TimeValue *pTimeVal)
Get the GMT from a oslDateTime and fill a TimeValue.
SAL_DLLPUBLIC sal_Bool osl_getDateTimeFromTimeValue(const TimeValue *pTimeVal, oslDateTime *pDateTime)
Get the GMT from a TimeValue and fill a struct oslDateTime.
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.
struct _oslDateTime oslDateTime
SAL_DLLPUBLIC sal_Bool osl_getLocalTimeFromSystemTime(const TimeValue *pSystemTimeVal, TimeValue *pLocalTimeVal)
Convert GMT to local time.
SAL_DLLPUBLIC sal_Bool osl_getSystemTime(TimeValue *pTimeVal)
Get the current system time as TimeValue.
Time since Jan-01-1970.
Definition time.h:76
sal_uInt32 Seconds
Definition time.h:77
sal_uInt32 Nanosec
Definition time.h:78
sal_Int16 Year
is the year.
Definition time.h:127
sal_uInt32 NanoSeconds
contains the nanoseconds
Definition time.h:99
sal_uInt16 Hours
contains the hour (0-23).
Definition time.h:111
sal_uInt16 Month
is the month of year (1-12).
Definition time.h:123
sal_uInt16 DayOfWeek
is the day of week (0-6 , 0 : Sunday).
Definition time.h:119
sal_uInt16 Seconds
contains the seconds (0-59).
Definition time.h:103
sal_uInt16 Day
is the day of month (1-31).
Definition time.h:115
sal_uInt16 Minutes
contains the minutes (0-59).
Definition time.h:107