Answers for "unix_timestamp mysql"

PHP
2

unix timestamp in php

strtotime("now");

// strtotime is a function that will take a string parameter 
// that specifies a date, and returns a unix time stamp bassed
// on that

echo strtotime("2020-02-24");

// prints: 1582502400
Posted by: Guest on February-24-2020
0

mysql date format unix timestamp

SELECT
  FROM_UNIXTIME(timestamp) 
FROM 
  your_table;
Posted by: Guest on September-22-2020
0

timestamp mysql

1970-01-01 00:00:01
Posted by: Guest on February-23-2021

Browse Popular Code Answers by Language