I'm having a problem here..
Supposed I have this kind of datetime.
$date = strtotime($date);
I need this to be converted into the Unix-timestamp format but one hour earlier..I tried
$date = strtotime($date-86400)
, but seemed to me it is wrong. It returned 0 when I sneaked into the table.
What is the appropriate way to achieve this?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…