| View previous topic :: View next topic |
| Author |
Message |
mplacona
Joined: 07 Aug 2007 Posts: 28
|
Posted: Tue Sep 11, 2007 7:40 am Post subject: Get GMT time |
|
|
Hello, is there any way in the PSP to get the GMT+0 time? The fac is, I'm using sceRtcGetCurrentClockLocalTime to get the local time, but this is the time from my PSP, I'd ike toget the Greenwitch Mean Time and not the local time.
Is that possible? I might be missing something on the PSP functions, but I'm sure it must be there.
Thanks |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Tue Sep 11, 2007 9:29 am Post subject: |
|
|
| Probably sceRtcGetCurrentClock would do the trick. Look at the psprtc.h documentation. Or just use normal time functions like time(), gmtime(), etc. |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Sep 11, 2007 9:50 am Post subject: |
|
|
^^^ as above , only I'm certain because I use it in a program :)
| Code: | | sceRtcGetCurrentClock(&rtime,0); |
|
|
| Back to top |
|
 |
mplacona
Joined: 07 Aug 2007 Posts: 28
|
Posted: Tue Sep 11, 2007 6:31 pm Post subject: |
|
|
Thank jimparis and Art, it worked like a charm!
Cheers |
|
| Back to top |
|
 |
|