Accessing date or time?

Game Editor comments and discussion.

Accessing date or time?

Postby BeyondtheTech » Wed Mar 30, 2005 6:37 am

I'd like to be able to retrieve the date and time into the program, but I don't see it in the documentation. I'd like to be able to do things, such as change the background based on the time of the year the program was launched, compute a Star Trek stardate, and other things.

Just bought the program yesterday and I must say it's awesome.
User avatar
BeyondtheTech
 
Posts: 270
Joined: Wed Mar 30, 2005 6:34 am
Location: Edison, NJ
Score: 4 Give a positive score

Postby Just4Fun » Wed Mar 30, 2005 4:11 pm

Welcome BeyondtheTech:
Glad that you decided to purchase GE. It is a great program.

As far as your time problem goes, your might investigate the C programming time() function.
Something like:
time_t myvariable;
myvariable = time((time_t *)NULL);/*Gets the system time and puts it
into '"myvariable"as "calender time"*/

I haven't tried using this yet so I'm not positive it will work for you, but you might 'fool around' with it and see.

You may also be able to use GE's built in "Create Timer", but I'm not sure that would solve your problem...
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby makslane » Thu Mar 31, 2005 12:48 am

Is not possible get the system time in current version.
I will put this in my task list.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest