forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pspTime struct not helping me

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
reefbarman



Joined: 08 Jan 2007
Posts: 87
Location: Australia

PostPosted: Tue Jan 09, 2007 12:12 pm    Post subject: pspTime struct not helping me Reply with quote

Hi everyone,

in my code at the moment im using
Code:
sceRtcGetCurrentClockLocalTime(&myTime);

to store the current time in a pspTime struct.

My problem is that i can print to the screen myTime.day
Code:
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
Back to top
View user's profile Send private message
reefbarman



Joined: 08 Jan 2007
Posts: 87
Location: Australia

PostPosted: Tue Jan 09, 2007 12:16 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group