Anyway to retrieve the Date and Time from the Player's PC?

Post » Fri Jul 23, 2010 9:29 am

Basically, the topic: is there any way to get the Date and Time off the Player's computer? I know that it's possible in other games (i.e., Soul Silver/Heart Gold) and consoles (Xbox-360), which makes me think there's a way to read the time-output on a Unit-- but is there any (reasonable) way to retrieve this information for use inside of Oblivion?
User avatar
Vicky Keeler
 
Posts: 3427
Joined: Wed Aug 23, 2006 3:03 am

Post » Fri Jul 23, 2010 4:26 pm

http://obse.silverlock.org/obse_command_doc.html#GetUserTime
User avatar
Dalley hussain
 
Posts: 3480
Joined: Sun Jun 18, 2006 2:45 am

Post » Fri Jul 23, 2010 7:37 pm

Excellent, thank-you :D

Edit:

OK... Any help with how I use this? As I understand it, from the Documentation, I need an array, right? I'm afraid I've not worked with them before, so am a little out of my depth...

I'm currently assuming this is accurate:

Array_var DateInformationShort WhichDayShort WhichMonthShort WhichHourShort WhichMinuteShort TempMinLet DateInformation := GetUserTime; Unknown....Set GameDay to WhichDaySet GameMonth to WhichMonthSet TempMin to ( 10 / 60 )Set TempMin to ( TempMin * WhichMinute )Set TempMin to ( TempMin / 10 )Set GameHour to ( WhichHour + TempMin )


which should turn DateInformation into the collected Data/Time information from GetUserTime, but how do I get those to turn into the Variables I need to use?

Thanks for the help :)
User avatar
Chantel Hopkin
 
Posts: 3533
Joined: Sun Dec 03, 2006 9:41 am

Post » Fri Jul 23, 2010 4:26 pm

I've never used the function, but from what I understand it will return an array (StringMap) with all the data. You would access the contained data like so:

Let DateInformation := GetUserTimelet WhichDay := DateInformation["Day"]let WhichMonth := DateInformation["Month"];etc...

User avatar
Mark Hepworth
 
Posts: 3490
Joined: Wed Jul 11, 2007 1:51 pm


Return to IV - Oblivion

cron