| View previous topic :: View next topic |
| Author |
Message |
cwbowron

Joined: 06 May 2005 Posts: 76 Location: East Lansing, MI
|
Posted: Fri Jul 15, 2005 12:43 am Post subject: Date Functions |
|
|
Has anyone uncovered or have functions to calculate the current year, month and day? I see that sceKernelLibcTime can return seconds since the epoch and that time() has been implemented in the pspsdk, but localtime() and gmtime() are missing according to LIB.status in the pspsdk. Are there any sce* functions for retrieving current date info?
Thanks. |
|
| Back to top |
|
 |
cwbowron

Joined: 06 May 2005 Posts: 76 Location: East Lansing, MI
|
Posted: Fri Jul 15, 2005 6:08 am Post subject: |
|
|
Ok, I figured it out.
newlib implements localtime() so I used -lc -lpspglue rather than -lpsplibc |
|
| Back to top |
|
 |
Lex
Joined: 11 May 2005 Posts: 27 Location: Germany
|
Posted: Sat Jul 16, 2005 4:49 am Post subject: |
|
|
You can use
0xe7c27d1b sceRtcGetCurrentClockLocalTime
and then
0x779242a2 sceRtcConvertLocalTimeToUTC |
|
| Back to top |
|
 |
|