Welcome Guest, Not a member yet? Register   Sign In
unix_to_human
#1

[eluser]rossmurphy[/eluser]
I have this function.

Code:
function dateToHuman($timestamp) {
     return unix_to_human((string) $timestamp / 1000);
}

but when i remove (string) it returns the date as 1970? Anyone know why i need (string)??

Also, same problem when i use

Code:
date("r", $timestamp)

to return instead of unix_to_human?

I've never run into this before, why does it need a string declaration?




Theme © iAndrew 2016 - Forum software by © MyBB