pspTime struct not helping me

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

Moderators: cheriff, TyRaNiD

Post Reply
reefbarman
Posts: 87
Joined: Mon Jan 08, 2007 12:16 pm
Location: Australia

pspTime struct not helping me

Post by reefbarman »

Hi everyone,

in my code at the moment im using

Code: Select all

sceRtcGetCurrentClockLocalTime(&myTime); 
to store the current time in a pspTime struct.

My problem is that i can print to the screen myTime.day

Code: Select all

oslPrintf_xy(11, 4, "%i", myTime.day);
but when i go to store it in either an int or u16 variable, and then print it out
it only ever prints 0 to the screen, i need to be able to store it in a variable so i can manipulate the numbers and use them for counting etc. but the only variable that is stored is 0, and this is the same for myTime.month, and myTime.year

i cant see what is going on here cause the print perfectly to the screen just using myTime.day
reefbarman
Posts: 87
Joined: Mon Jan 08, 2007 12:16 pm
Location: Australia

Post by reefbarman »

lol i figured it out i was trying to initialise the variables before i had even asked for the time with the first function thanks anyway
Post Reply