Answers for "echo show current timestamp"

3

get current timestamp shell

// If you want to get unix timestamp, then you need to use:
timestamp=$(date +%s)
Posted by: Guest on September-09-2020
1

php datetime object get unix timestamp

$date = new DateTime();
echo $date->getTimestamp();
Posted by: Guest on April-01-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language