//Get a time stamp based on the given game time return integer with given numbers int GetTimeStamp(int year, int month, int day, int hour, int minute, int second); //return timestamp integer based on current time int GetCurrentTimeStamp(); //return a timestamp increased by given time units // old is the old timestamp int IncreaseTimeStamp(int old, int year, int month=0, int day=0, int hour=0, int minute=0, int second=0); //return a timestamp decreased by given time units // old is the old timestamp int DecreaseTimeStamp(int old, int year, int month=0, int day=0, int hour=0, int minute=0, int second=0);
These functions can be used to check when something is reusable again, by getting current timestamp and storing it and then later comparing it to the timestamp gotten with increase timestamp