Changing System Time Globally? Any SCE function Exports?

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

Moderators: cheriff, TyRaNiD

Post Reply
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Changing System Time Globally? Any SCE function Exports?

Post by KickinAezz »

Hello,

I was wondering if it was possible; It Should be...

I looked into sceRTC* but I've seen nothing that would be useful :|

How can we achieve that?
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

sceRtcSetCurrentTick. Note however that it is a kernel export only.

Code: Select all

void SetDate(pspTime *time)
{
	u64 tick, tick2;

	sceRtcGetTick(time, &tick);
	sceRtcConvertLocalTimeToUTC(&tick, &tick2);
	sceRtcSetCurrentTick(&tick2);
}
KickinAezz
Posts: 328
Joined: Sun Jun 03, 2007 10:05 pm

Post by KickinAezz »

moonlight wrote:sceRtcSetCurrentTick. Note however that it is a kernel export only.

Code: Select all

void SetDate(pspTime *time)
{
	u64 tick, tick2;

	sceRtcGetTick(time, &tick);
	sceRtcConvertLocalTimeToUTC(&tick, &tick2);
	sceRtcSetCurrentTick(&tick2);
}
Thanks! This wasn't even in the latest PSPSDK.

[The closest I found before asking was sceRtcSetTick,]
It converts Hours, minutes and seconds and converts it into ticks based on a local pspTime struct.


This also changes time in XMB and home Right? [I hope it does...]
Last edited by KickinAezz on Tue Aug 05, 2008 12:50 am, edited 1 time in total.
Intrigued by PSP system Since December 2006.
Use it more for Development than for Gaming.
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

Yeah, the function is not in includes, but it is in the libpsprtc_driver library anyways.

P.S.: yeah this changes the date totally. I used that when i changed the date in 3.51 M33 installer :)
Post Reply