Comparing time approach? [SOLVED]

E

Eisot

Guest
I am reading the manual about time and date but can't figure out the best way to get what I want.

The game situation:
I drop an item in the room. The date_current_datetime is saved to an ini-file.
The item will change over time so I need to check how long time have passed when I return to the room.
It must work even if the game has been closed for days.
Preferable the comparison result should be shown in minutes.

My problems are:
When drawing the saved date_current_datetime it gives me this format: 42702.48 and I can't find info on what it says and how to split it up to get minutes.
I can't use the date_compare_datetime since that only gives me "The 1st one is bigger" or "The 2nd one bigger".

Any suggestions and pointers much appreciated.
 
E

Eisot

Guest
Finally figured out to use "span" for this. In case someone else wonders. :)
 
E

Eisot

Guest
For example "hour span" checking how many hours since "some time stamp" use
date_hour_span.
I was not able to post the url to the right page in the manual. If you search the manual for "date_hour_span" you will see all the options. :)
 

obscene

Member
I see. I never knew those existed, I've always done it the hard way and calculated / converted the numbers. Learned something new! :)
 
Top