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.
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.