I have a datetime value in mysql
'2010-12-08 16:12:12'
that I'd like to get the seconds to that date using PHP
,
so basically a PHP
equivalent of mysql
:
TIME_TO_SEC(TIMEDIFF('2010-12-08 16:12:12',now()))
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…