• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Email timestamp to unix timestamp

#2
PHP Code:
$dt = new DateTime("Tue, 30 Oct 2018 07:00:08 +0000");
echo 
$dt->getTimestamp(); 

outputs 1540882808

PHP DateTime docs
Reply


Messages In This Thread
Email timestamp to unix timestamp - by neuron - 11-02-2018, 08:33 AM
RE: Email timestamp to unix timestamp - by dave friend - 11-02-2018, 08:51 AM
RE: Email timestamp to unix timestamp - by neuron - 11-05-2018, 12:40 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.