Get GMT time

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
mplacona
Posts: 28
Joined: Tue Aug 07, 2007 7:07 am

Get GMT time

Post by mplacona »

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
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

Probably sceRtcGetCurrentClock would do the trick. Look at the psprtc.h documentation. Or just use normal time functions like time(), gmtime(), etc.
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

^^^ as above , only I'm certain because I use it in a program :)

Code: Select all

			sceRtcGetCurrentClock(&rtime,0);
mplacona
Posts: 28
Joined: Tue Aug 07, 2007 7:07 am

Post by mplacona »

Thank jimparis and Art, it worked like a charm!

Cheers
Post Reply