我在两个不同的日期时间都获得了相同的Unix时间戳:
SELECT UNIX_TIMESTAMP("2014-03-09 02:00:00")
--> 1394352000
SELECT UNIX_TIMESTAMP("2014-03-09 03:00:00")
--> 1394352000
预先感谢您提供解决此问题的任何想法。
此外,我还查看了2013年12月22日至2019年4月之间的天体清单,发现与此日期重复:
UNIX TIMESTAMP = 1394352000, FECHA_HORA = 9/3/2014 2:00
UNIX TIMESTAMP = 1394352000, FECHA_HORA = 9/3/2014 2:00
UNIX TIMESTAMP = 1425801600, FECHA_HORA = 8/3/2015 2:00
UNIX TIMESTAMP = 1425801600, FECHA_HORA = 8/3/2015 3:00
UNIX TIMESTAMP = 1457856000, FECHA_HORA = 13/3/2016 2:00
UNIX TIMESTAMP = 1457856000, FECHA_HORA = 13/3/2016 3:00
UNIX TIMESTAMP = 1489305600, FECHA_HORA = 12/3/2017 2:00
UNIX TIMESTAMP = 1489305600, FECHA_HORA = 12/3/2017 3:00
UNIX TIMESTAMP = 1520755200, FECHA_HORA = 11/3/2018 2:00
UNIX TIMESTAMP = 1520755200, FECHA_HORA = 11/3/2018 3:00
UNIX TIMESTAMP = 1552204800, FECHA_HORA = 10/3/2019 2:00
UNIX TIMESTAMP = 1552204800, FECHA_HORA = 10/3/2019 3:00
用于将日期前时间格式转换为我使用的UNIX_TIMESTAMP接受的格式:
SELECT UNIX_TIMESTAMP ( STR_TO_DATE("9/3/2014 2:00", '%e/%c/%Y %k:%i') );