TIME STAMP IN MYSQL code example
Example 1: date vs datetime
DATE : YYYY-MM-DD format
DATETIME : YYYY-MM-DD HH:MM:SS format
TIMESTAMP : X s from 1970 format
TIME : HH:MM:SS format
Example 2: timestamp mysql
1970-01-01 00:00:01
DATE : YYYY-MM-DD format
DATETIME : YYYY-MM-DD HH:MM:SS format
TIMESTAMP : X s from 1970 format
TIME : HH:MM:SS format
1970-01-01 00:00:01