Jump to content


Photo

simple function not working?


  • Please log in to reply
2 replies to this topic

#1 localhost

localhost
  • Members
  • PipPipPip
  • Advanced Member
  • 152 posts

Posted 16 August 2006 - 10:37 PM

i am using a dateline, so for making registered date, the regdate is mktime();

i can easily decode it by putting date("dateformat", $dateline);

so i am making a function to decode the time in my format...not sure why its not working, probably something simple.

function decodeTime($dateline)
{
	date("m-d-Y h:i A", $dateline);
	return $dateline;
}

any ideas?

#2 king arthur

king arthur
  • Members
  • PipPipPip
  • Advanced Member
  • 335 posts
  • LocationUK HQ

Posted 16 August 2006 - 10:39 PM

Try
function decodeTime($dateline)
{
	return date("m-d-Y h:i A", $dateline);
}

Sir Isaac Newton said "If I have seen farther, it is by standing on the shoulders of giants". But it is not recorded as to whether he said it before or after he was hit on the head by a falling apple.

#3 localhost

localhost
  • Members
  • PipPipPip
  • Advanced Member
  • 152 posts

Posted 16 August 2006 - 10:44 PM

worked wonderfully! thanks!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users