Timestamp | Seconds
#1

Hello!
I wanted to ask how to calculate a timestamp within seconds.
The end should look like that (You're still day: hour: minute: second locked!)
I can already calculate days, hours and minutes)

Код:
new days,hours,mins,seconds,wartezeit = wert,restzeit= wartezeit -gettime();
days = floatround(restzeit / 86400,floatround_floor),
hours = restzeit - (days * 86400),
hours = floatround(hours / 3600,floatround_floor),
mins = restzeit - ( (days * 86400) + (hours * 3600) ),
mins = floatround(mins / 60,floatround_floor);
But second? No plan
I ask for help
PS: Sorry for my bad English
Reply


Messages In This Thread
Timestamp | Seconds - by CIBERKILLER - 25.10.2014, 09:03
Re: Timestamp | Seconds - by Mic_H - 25.10.2014, 09:37

Forum Jump:


Users browsing this thread: 2 Guest(s)