vitasdk
Documentation of the vitasdk
rtc.h File Reference
#include <vitasdk/build_utils.h>
#include <psp2common/kernel/rtc.h>
#include <psp2/types.h>
#include <time.h>

Go to the source code of this file.

Macros

#define sceRtcGetCurrentTickUtc(_tick)   sceRtcGetCurrentTick(_tick)
 
#define sceRtcGetCurrentClockUtc(_p)   sceRtcGetCurrentClock(_p,0)
 
#define sceRtcGetCurrentNetworkTickUtc(_tick)   sceRtcGetCurrentNetworkTick(_tick)
 
#define sceRtcConvertTime_tToDateTime(_timet, _pdatetime)   sceRtcSetTime_t(_pdatetime, _timet)
 
#define sceRtcConvertTime64_tToDateTime(_timet, _pdatetime)   sceRtcSetTime64_t(_pdatetime, _timet)
 
#define sceRtcConvertDateTimeToTime_t(_pdatetime, _ptimet)   sceRtcGetTime_t(_pdatetime, _ptimet)
 
#define sceRtcConvertDateTimeToTime64_t(_pdatetime, _ptimet)   sceRtcGetTime64_t(_pdatetime, _ptimet)
 
#define sceRtcConvertDosTimeToDateTime(_dostime, _pdatetime)   sceRtcSetDosTime(_pdatetime, _dostime)
 
#define sceRtcConvertDateTimeToDosTime(_pdatetime, _pdostime)   sceRtcGetDosTime(_pdatetime, _pdostime)
 
#define sceRtcConvertWin32TimeToDateTime(_pw32time, _pdatetime)   sceRtcSetWin32FileTime(_pdatetime, _pw32time)
 
#define sceRtcConvertDateTimeToWin32Time(_pdatetime, _pw32time)   sceRtcGetWin32FileTime(_pdatetime, _pw32time)
 
#define sceRtcConvertTickToDateTime(_ptick, _pdatetime)   sceRtcSetTick(_pdatetime, _ptick)
 
#define sceRtcConvertDateTimeToTick(_pdatetime, _ptick)   sceRtcGetTick(_pdatetime, _ptick)
 

Functions

unsigned int sceRtcGetTickResolution (void)
 
int sceRtcGetCurrentTick (SceRtcTick *tick)
 
int sceRtcGetCurrentClock (SceDateTime *time, int time_zone)
 Get current real time clock time. More...
 
int sceRtcGetCurrentClockLocalTime (SceDateTime *time)
 Get current real time clock time with system time zone. More...
 
int sceRtcGetCurrentNetworkTick (SceRtcTick *tick)
 
int sceRtcConvertUtcToLocalTime (const SceRtcTick *utc, SceRtcTick *local_time)
 
int sceRtcConvertLocalTimeToUtc (const SceRtcTick *local_time, SceRtcTick *utc)
 
int sceRtcIsLeapYear (int year)
 
int sceRtcCheckValid (const SceDateTime *time)
 
int sceRtcGetDaysInMonth (int year, int month)
 
int sceRtcGetDayOfWeek (int year, int month, int day)
 
int sceRtcSetTime_t (SceDateTime *time, time_t iTime)
 
int sceRtcSetTime64_t (SceDateTime *time, SceUInt64 ullTime)
 
int sceRtcGetTime_t (const SceDateTime *time, time_t *piTime)
 
int sceRtcGetTime64_t (const SceDateTime *time, SceUInt64 *pullTime)
 
int sceRtcSetDosTime (SceDateTime *time, unsigned int uiDosTime)
 
int sceRtcGetDosTime (const SceDateTime *time, unsigned int *puiDosTime)
 
int sceRtcSetWin32FileTime (SceDateTime *time, SceUInt64 ulWin32Time)
 
int sceRtcGetWin32FileTime (const SceDateTime *time, SceUInt64 *ulWin32Time)
 
int sceRtcSetTick (SceDateTime *time, const SceRtcTick *tick)
 
int sceRtcGetTick (const SceDateTime *time, SceRtcTick *tick)
 
int sceRtcCompareTick (const SceRtcTick *pTick1, const SceRtcTick *pTick2)
 
int sceRtcTickAddTicks (SceRtcTick *pTick0, const SceRtcTick *pTick1, SceLong64 lAdd)
 
int sceRtcTickAddMicroseconds (SceRtcTick *pTick0, const SceRtcTick *pTick1, SceLong64 lAdd)
 
int sceRtcTickAddSeconds (SceRtcTick *pTick0, const SceRtcTick *pTick1, SceLong64 lAdd)
 
int sceRtcTickAddMinutes (SceRtcTick *pTick0, const SceRtcTick *pTick1, SceLong64 lAdd)
 
int sceRtcTickAddHours (SceRtcTick *pTick0, const SceRtcTick *pTick1, int lAdd)
 
int sceRtcTickAddDays (SceRtcTick *pTick0, const SceRtcTick *pTick1, int lAdd)
 
int sceRtcTickAddWeeks (SceRtcTick *pTick0, const SceRtcTick *pTick1, int lAdd)
 
int sceRtcTickAddMonths (SceRtcTick *pTick0, const SceRtcTick *pTick1, int lAdd)
 
int sceRtcTickAddYears (SceRtcTick *pTick0, const SceRtcTick *pTick1, int lAdd)
 
int sceRtcFormatRFC2822 (char *pszDateTime, const SceRtcTick *utc, int iTimeZoneMinutes)
 
int sceRtcFormatRFC2822LocalTime (char *pszDateTime, const SceRtcTick *utc)
 
int sceRtcFormatRFC3339 (char *pszDateTime, const SceRtcTick *utc, int iTimeZoneMinutes)
 
int sceRtcFormatRFC3339LocalTime (char *pszDateTime, const SceRtcTick *utc)
 
int sceRtcParseDateTime (SceRtcTick *utc, const char *pszDateTime)
 
int sceRtcParseRFC3339 (SceRtcTick *utc, const char *pszDateTime)
 
int _sceRtcConvertLocalTimeToUtc (const SceRtcTick *localtime, SceRtcTick *utc)
 Convert localtime to UTC. More...
 
int _sceRtcConvertUtcToLocalTime (const SceRtcTick *utc, SceRtcTick *localtime)
 Convert UTC to localtime. More...
 
int _sceRtcFormatRFC2822 (char *datetime, const SceRtcTick *utc, int offset, SceUInt64 *a4)
 Convert RFC2822 time string from UTC. More...
 
int _sceRtcFormatRFC2822LocalTime (char *datetime, const SceRtcTick *utc, SceUInt64 *a3)
 Convert RFC2822 time string from UTC with localtime. More...
 
int _sceRtcFormatRFC3339 (char *datetime, const SceRtcTick *utc, int offset, SceUInt64 *a4)
 Convert RFC3339 time string from UTC. More...
 
int _sceRtcFormatRFC3339LocalTime (char *datetime, const SceRtcTick *utc, SceUInt64 *a3)
 Convert RFC3339 time string from UTC with localtime. More...
 
int sceRtcGetCurrentAdNetworkTick (SceRtcTick *tick)
 
int sceRtcGetCurrentDebugNetworkTick (SceRtcTick *tick)
 
int sceRtcGetCurrentGpsTick (SceRtcTick *tick)
 
int sceRtcGetCurrentRetainedNetworkTick (SceRtcTick *tick)
 
int sceRtcGetLastAdjustedTick (SceRtcTick *tick)
 
int sceRtcGetLastReincarnatedTick (SceRtcTick *tick)
 
SceULong64 sceRtcGetAccumulativeTime (void)