evilentity wrote:Thats exactly how you do it. You compare closing and starting times and calculate change based on that. You change it the same way you already do it, just the delta will be larger.
// gets time in seconds since 1980 or something like thateasy to compare how many seconds passed since previous time you saved the value
public static long getUnixtime()
{
return (long) (System.currentTimeMillis() / 1000L);
}
Users browsing this forum: No registered users and 1 guest