Game Development Community

Getting system time/ date

by Shane · in Torque Game Builder · 10/02/2009 (1:35 pm) · 6 replies

Is there a method in the TGB to get the current date on the system and time?

Thanks.
Shane

#1
10/02/2009 (1:39 pm)
You know as well as anyone that it's user error and no amount of community input is going to get your game working.

loser. ignored.

#2
10/02/2009 (1:42 pm)
shane, a quick search suggests that it's not natively possible to get the system time from script in TGB, but if you have access to the source then it's easy enough to expose to script. search "system time".

patrick, i sometimes wish the GG site really did have an ignore user feature.
#3
10/02/2009 (1:51 pm)
Ha ha ha @ patrick brat. And hmm no wayt o get the system time without touching the source that is a bummer... if I get the guts to do it i might attempt it, that or the end user can just deal with using the file creation date of the output file as the date value they need...
#4
10/02/2009 (1:55 pm)
Sorry to upset you Orion, just razing Shane a bit. Feel free to ignore me regardless.
#6
11/21/2009 (9:29 pm)
Maybe this:
http://tdn.garagegames.com/wiki/TorqueScript_Console_Functions_19#getRealTime.28.29

It gets you the system time in milliseconds... I'm not sure if that'd be useful to you.