Cannot figure out php date() timestamps for two timestamps -
with php, trying convert bunch of numbers a readable format, thing is, have no idea how/what format these in or can parsed in using date()
or time()
functions in php. there 2 of these well.
(they're built total time spent online , time since last log-on)
onlinetime : 1544946 = 2w 3d 21h 9m lastonline : 1397087222 = 1h 32m
does know way 2 different times 2 different timestamps?
if have unix timestamp, take @ convert timestamp readable date/time php. php documentation here: http://php.net/manual/en/function.date.php.
for online time, modulo arithmetic figure out values each, , make string out of result. may have nicer suggestion though.
Comments
Post a Comment