pspsdk-1.0+beta2
|
Go to the source code of this file.
Data Structures | |
struct | pspTime |
Enumerations | |
enum | pspRtcCheckValidErrors { PSP_TIME_INVALID_YEAR = -1, PSP_TIME_INVALID_MONTH = -2, PSP_TIME_INVALID_DAY = -3, PSP_TIME_INVALID_HOUR = -4, PSP_TIME_INVALID_MINUTES = -5, PSP_TIME_INVALID_SECONDS = -6, PSP_TIME_INVALID_MICROSECONDS = -7 } |
Functions | |
u32 | sceRtcGetTickResolution () |
Get the resolution of the tick counter. | |
int | sceRtcGetCurrentTick (u64 *tick) |
Get current tick count. | |
int | sceRtcGetCurrentClock (pspTime *time, int tz) |
Get current tick count, adjusted for local time zone. | |
int | sceRtcGetCurrentClockLocalTime (pspTime *time) |
Get current local time into a pspTime struct. | |
int | sceRtcConvertUtcToLocalTime (const u64 *tickUTC, u64 *tickLocal) |
Convert a UTC-based tickcount into a local time tick count. | |
int | sceRtcConvertLocalTimeToUTC (const u64 *tickLocal, u64 *tickUTC) |
Convert a local time based tickcount into a UTC-based tick count. | |
int | sceRtcIsLeapYear (int year) |
Check if a year is a leap year. | |
int | sceRtcGetDaysInMonth (int year, int month) |
Get number of days in a specific month. | |
int | sceRtcGetDayOfWeek (int year, int month, int day) |
Get day of the week for a date. | |
int | sceRtcCheckValid (const pspTime *date) |
Validate pspDate component ranges. | |
int | sceRtcSetTick (pspTime *date, const u64 *tick) |
Set a pspTime struct based on ticks. | |
int | sceRtcGetTick (const pspTime *date, u64 *tick) |
Set ticks based on a pspTime struct. | |
int | sceRtcCompareTick (const u64 *tick1, const u64 *tick2) |
Compare two ticks. | |
int | sceRtcTickAddTicks (u64 *destTick, const u64 *srcTick, u64 numTicks) |
Add two ticks. | |
int | sceRtcTickAddMicroseconds (u64 *destTick, const u64 *srcTick, u64 numMS) |
Add an amount of ms to a tick. | |
int | sceRtcTickAddSeconds (u64 *destTick, const u64 *srcTick, u64 numSecs) |
Add an amount of seconds to a tick. | |
int | sceRtcTickAddMinutes (u64 *destTick, const u64 *srcTick, u64 numMins) |
Add an amount of minutes to a tick. | |
int | sceRtcTickAddHours (u64 *destTick, const u64 *srcTick, int numHours) |
Add an amount of hours to a tick. | |
int | sceRtcTickAddDays (u64 *destTick, const u64 *srcTick, int numDays) |
Add an amount of days to a tick. | |
int | sceRtcTickAddWeeks (u64 *destTick, const u64 *srcTick, int numWeeks) |
Add an amount of weeks to a tick. | |
int | sceRtcTickAddMonths (u64 *destTick, const u64 *srcTick, int numMonths) |
Add an amount of months to a tick. | |
int | sceRtcTickAddYears (u64 *destTick, const u64 *srcTick, int numYears) |
Add an amount of years to a tick. | |
int | sceRtcSetTime_t (pspTime *date, const time_t time) |
int | sceRtcGetTime_t (const pspTime *date, time_t *time) |
int | sceRtcSetDosTime (pspTime *date, u32 dosTime) |
int | sceRtcGetDosTime (pspTime *date, u32 dosTime) |
int | sceRtcSetWin32FileTime (pspTime *date, u64 *win32Time) |
int | sceRtcGetWin32FileTime (pspTime *date, u64 *win32Time) |
int | sceRtcParseDateTime (u64 *destTick, const char *dateString) |
int sceRtcCheckValid | ( | const pspTime * | date | ) |
Validate pspDate component ranges.
date | - pointer to pspDate struct to be checked |
Compare two ticks.
tick1 | - pointer to first tick |
tick2 | - poiinter to second tick |
Convert a local time based tickcount into a UTC-based tick count.
tickLocal | - pointer to u64 tick in local time |
tickUTC | - pointer to u64 to receive tick in UTC based time |
Convert a UTC-based tickcount into a local time tick count.
tickUTC | - pointer to u64 tick in UTC time |
tickLocal | - pointer to u64 to receive tick in local time |
int sceRtcGetCurrentClock | ( | pspTime * | time, |
int | tz | ||
) |
Get current tick count, adjusted for local time zone.
time | - pointer to pspTime struct to receive time |
tz | - time zone to adjust to (minutes from UTC) |
int sceRtcGetCurrentClockLocalTime | ( | pspTime * | time | ) |
int sceRtcGetCurrentTick | ( | u64 * | tick | ) |
Get current tick count.
tick | - pointer to u64 to receive tick count |
int sceRtcGetDayOfWeek | ( | int | year, |
int | month, | ||
int | day | ||
) |
Get day of the week for a date.
year | - year in which to check (accounts for leap year) |
month | - month that day is in |
day | - day to get day of week for |
int sceRtcGetDaysInMonth | ( | int | year, |
int | month | ||
) |
Get number of days in a specific month.
year | - year in which to check (accounts for leap year) |
month | - month to get number of days for |
u32 sceRtcGetTickResolution | ( | ) |
Get the resolution of the tick counter.
int sceRtcIsLeapYear | ( | int | year | ) |
Check if a year is a leap year.
year | - year to check if is a leap year |
int sceRtcParseDateTime | ( | u64 * | destTick, |
const char * | dateString | ||
) |
Add an amount of days to a tick.
destTick | - pointer to tick to hold result |
srcTick | - pointer to source tick |
numDays | - number of days to add |
Add an amount of hours to a tick.
destTick | - pointer to tick to hold result |
srcTick | - pointer to source tick |
numHours | - number of hours to add |
Add an amount of ms to a tick.
destTick | - pointer to tick to hold result |
srcTick | - pointer to source tick |
numMS | - number of ms to add |
Add an amount of minutes to a tick.
destTick | - pointer to tick to hold result |
srcTick | - pointer to source tick |
numMins | - number of minutes to add |
Add an amount of months to a tick.
destTick | - pointer to tick to hold result |
srcTick | - pointer to source tick |
numMonths | - number of months to add |
Add an amount of seconds to a tick.
destTick | - pointer to tick to hold result |
srcTick | - pointer to source tick |
numSecs | - number of seconds to add |
Add two ticks.
destTick | - pointer to tick to hold result |
srcTick | - pointer to source tick |
numTicks | - number of ticks to add |
Add an amount of weeks to a tick.
destTick | - pointer to tick to hold result |
srcTick | - pointer to source tick |
numWeeks | - number of weeks to add |