如何使用mktime获取今天的时间

I tried to get todays time at 00:01:00 (h:i:s)

my code:

<?php 
$delay_hour=10;
$delay_minute=11;

echo $t2=mktime($delay_hour, $delay_minute, 00, date('n',time()), date('j',time()), date('Y',time()));
echo '<br/>';
echo date("d-m-Y h:i:s",$t2);
echo '<br/>';
$delay_hour=0;
$delay_minute=1;

echo $t2=mktime($delay_hour, $delay_minute, 00, date('n',time()), date('j',time()), date('Y',time()));
echo '<br/>';
echo date("d-m-Y h:i:s",$t2);
echo '<br/>';
?>

so how to get todays time at 00:01:00?

查看全部
drza10046
drza10046
2014/04/09 12:28
  • mktime
  • php
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复