Jump to content

How to convert javascript to php code?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
lol33d

lol33d

    Programmer

  • Members
  • PipPipPipPip
  • 149 posts
hi guys

how to convert this code to PHP

var TimeCC = parseInt((new Date(ServerYear, Number(ServerMonth) - 1, ServerDay, ServerHour, ServerMinute, 0) - new Date()) / 1000 / 60);


parseInt((new Date - Date.parse(isTCUXT)) / 1000 /60 + TimeCC)



#2
SoN9ne

SoN9ne

    Programmer

  • Members
  • PipPipPipPip
  • 129 posts
Hmm, what is the value of isTCUXT?
This is what I came up with for this solution. It would help to explain what this is suppose to do...
<?php

$TimeCC = (int) (strtotime('1 month ago') / 1000 / 60);


$result = (strtotime($isTCUXT) / 1000 / 60) + $TimeCC;
Double check this to make sure it functions how you want. I just woke up so my mind is a little groggy.
"Life would be so much easier if we only had the source code."




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users