|
PSPSDK 2025-11-25
|


Go to the source code of this file.
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 (ScePspDateTime *time, int tz) |
| Get current tick count, adjusted for local time zone. | |
| int | sceRtcGetCurrentClockLocalTime (ScePspDateTime *time) |
| Get current local time into a ScePspDateTime 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 ScePspDateTime *date) |
| Validate pspDate component ranges. | |
| int | sceRtcSetTick (ScePspDateTime *date, const u64 *tick) |
| Set a ScePspDateTime struct based on ticks. | |
| int | sceRtcGetTick (const ScePspDateTime *date, u64 *tick) |
| Set ticks based on a ScePspDateTime 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 (ScePspDateTime *date, const time_t time) |
| int | sceRtcGetTime_t (const ScePspDateTime *date, time_t *time) |
| int | sceRtcSetDosTime (ScePspDateTime *date, u32 dosTime) |
| int | sceRtcGetDosTime (ScePspDateTime *date, u32 dosTime) |
| int | sceRtcSetWin32FileTime (ScePspDateTime *date, u64 *win32Time) |
| int | sceRtcGetWin32FileTime (ScePspDateTime *date, u64 *win32Time) |
| int | sceRtcParseDateTime (u64 *destTick, const char *dateString) |
| int | sceRtcFormatRFC2822 (char *pszDateTime, const u64 *pUtc, int iTimeZoneMinutes) |
| Format Tick-representation UTC time in RFC2822 format. | |
| int | sceRtcFormatRFC2822LocalTime (char *pszDateTime, const u64 *pUtc) |
| Format Tick-representation UTC time in RFC2822 format. | |
| int | sceRtcFormatRFC3339 (char *pszDateTime, const u64 *pUtc, int iTimeZoneMinutes) |
| Format Tick-representation UTC time in RFC3339(ISO8601) format. | |
| int | sceRtcFormatRFC3339LocalTime (char *pszDateTime, const u64 *pUtc) |
| Format Tick-representation UTC time in RFC3339(ISO8601) format. | |
| int | sceRtcParseRFC3339 (u64 *pUtc, const char *pszDateTime) |
| Parse time information represented in RFC3339 format. | |
| int sceRtcCheckValid | ( | const ScePspDateTime * | 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 sceRtcFormatRFC2822 | ( | char * | pszDateTime, |
| const u64 * | pUtc, | ||
| int | iTimeZoneMinutes ) |
Format Tick-representation UTC time in RFC2822 format.
| int sceRtcFormatRFC2822LocalTime | ( | char * | pszDateTime, |
| const u64 * | pUtc ) |
Format Tick-representation UTC time in RFC2822 format.
| int sceRtcFormatRFC3339 | ( | char * | pszDateTime, |
| const u64 * | pUtc, | ||
| int | iTimeZoneMinutes ) |
Format Tick-representation UTC time in RFC3339(ISO8601) format.
| int sceRtcFormatRFC3339LocalTime | ( | char * | pszDateTime, |
| const u64 * | pUtc ) |
Format Tick-representation UTC time in RFC3339(ISO8601) format.
| int sceRtcGetCurrentClock | ( | ScePspDateTime * | time, |
| int | tz ) |
Get current tick count, adjusted for local time zone.
| time | - pointer to ScePspDateTime struct to receive time |
| tz | - time zone to adjust to (minutes from UTC) |
| int sceRtcGetCurrentClockLocalTime | ( | ScePspDateTime * | time | ) |
Get current local time into a ScePspDateTime struct.
| time | - pointer to ScePspDateTime struct to receive 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 |
| int sceRtcGetDosTime | ( | ScePspDateTime * | date, |
| u32 | dosTime ) |
| int sceRtcGetTick | ( | const ScePspDateTime * | date, |
| u64 * | tick ) |
Set ticks based on a ScePspDateTime struct.
| date | - pointer to ScePspDateTime to convert |
| tick | - pointer to tick to set |
| u32 sceRtcGetTickResolution | ( | ) |
Get the resolution of the tick counter.
| int sceRtcGetTime_t | ( | const ScePspDateTime * | date, |
| time_t * | time ) |
| int sceRtcGetWin32FileTime | ( | ScePspDateTime * | date, |
| u64 * | win32Time ) |
| 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 ) |
| int sceRtcParseRFC3339 | ( | u64 * | pUtc, |
| const char * | pszDateTime ) |
Parse time information represented in RFC3339 format.
| int sceRtcSetDosTime | ( | ScePspDateTime * | date, |
| u32 | dosTime ) |
| int sceRtcSetTick | ( | ScePspDateTime * | date, |
| const u64 * | tick ) |
Set a ScePspDateTime struct based on ticks.
| date | - pointer to ScePspDateTime struct to set |
| tick | - pointer to ticks to convert |
| int sceRtcSetTime_t | ( | ScePspDateTime * | date, |
| const time_t | time ) |
| int sceRtcSetWin32FileTime | ( | ScePspDateTime * | date, |
| u64 * | win32Time ) |
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 |