mysql获取时间截

mysql获取时间截
--  将时期生成时间截
Select  UNIX_TIMESTAMP(now());
Select  UNIX_TIMESTAMP( ' 2012-1-1 00:00:00 ' );

--  将时间截转成日期格式
select  from_unixtime( 1330509529 );

你可能感兴趣的:(mysql获取时间截)