Answers for "get unix timestamp"

PHP
1

php datetime object get unix timestamp

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

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
0

convert int to timestanp js

Date.now()

and

new Date(1381216317325);
Posted by: Guest on July-21-2020
1

from datetime to unix timestamp

import time
import datetime
d = datetime.date(2015,1,5)

unixtime = time.mktime(d.timetuple())
unixtime
Posted by: Guest on May-06-2021

Browse Popular Code Answers by Language