Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
XTimeUtils.cpp File Reference
#include "utils/XTimeUtils.h"
#include <errno.h>
#include <mutex>
#include <time.h>
#include <sys/times.h>

Namespaces

namespace  KODI
 
namespace  KODI::TIME
 

Macros

#define WIN32_TIME_OFFSET   ((unsigned long long)(369 * 365 + 89) * 24 * 3600 * 10000000)
 
#define IsLeapYear(y)
 

Functions

uint32_t KODI::TIME::GetTimeZoneInformation (TimeZoneInformation *timeZoneInformation)
 
void KODI::TIME::GetLocalTime (SystemTime *systemTime)
 
int KODI::TIME::FileTimeToLocalFileTime (const FileTime *fileTime, FileTime *localFileTime)
 
int KODI::TIME::SystemTimeToFileTime (const SystemTime *systemTime, FileTime *fileTime)
 
long KODI::TIME::CompareFileTime (const FileTime *fileTime1, const FileTime *fileTime2)
 
int KODI::TIME::FileTimeToSystemTime (const FileTime *fileTime, SystemTime *systemTime)
 
int KODI::TIME::LocalFileTimeToFileTime (const FileTime *localFileTime, FileTime *fileTime)
 
int KODI::TIME::FileTimeToTimeT (const FileTime *localFileTime, time_t *pTimeT)
 
int KODI::TIME::TimeTToFileTime (time_t timeT, FileTime *localFileTime)
 

Macro Definition Documentation

◆ IsLeapYear

#define IsLeapYear ( y)
Value:
((!(y % 4)) ? (((!(y % 400)) && (y % 100)) ? 1 : 0) : 0)

◆ WIN32_TIME_OFFSET

#define WIN32_TIME_OFFSET   ((unsigned long long)(369 * 365 + 89) * 24 * 3600 * 10000000)