sandy1028 Posted May 26, 2014 Share Posted May 26, 2014 $epocTime = $math.newInt($math.divide("$today.getTime()", "1000"))) $today.getTime() defined as : milliseconds since January 1, 1970, 00:00:00 GMT Can you please explain me the logic and convert the code to php? Quote Link to comment https://forums.phpfreaks.com/topic/288777-timestamp-help/ Share on other sites More sharing options...
jazzman1 Posted May 26, 2014 Share Posted May 26, 2014 You should go to the source (php.net) to learn and read up of how to use date/time function of this language, after that you need to try to create that php script yourself and then if you got some difficulty come back for help. Quote Link to comment https://forums.phpfreaks.com/topic/288777-timestamp-help/#findComment-1480871 Share on other sites More sharing options...
Barand Posted May 26, 2014 Share Posted May 26, 2014 In particular http://www.php.net/manual/en/ref.datetime.php Quote Link to comment https://forums.phpfreaks.com/topic/288777-timestamp-help/#findComment-1480889 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.