Ok i grabbed the server time, it gives me seconds in a unix time stamp i think. But i took the end time i wanted - current server time and i get a smaller string of seconds. But im having trouble convertering it to a time. I dont want a date and time i just want to convert it to dd:hh:mm:ss.
Could some one give me some insight on how to go about doing this pls. Thank you for your help.
Convert seconds to time in php
Moderator: General Moderators
Re: Convert seconds to time in php
Use the php date function to format unix timestamps.
Code: Select all
$unixTime = 1234567890;
$myTime = date('d:H:i:s', $unixTime);Re: Convert seconds to time in php
Ty vm that was exactly what i needed