echo strtotime("2006-05-14 23:59:59");

解决方案 »

  1.   

    谢谢,但是问题是这个时间是变化的,$etime = date("Y-m-d 23:59:59",strtotime("this Sunday"));
    这个时间是当前时间这周的最后一天。
    echo strtotime("2006-05-14 23:59:59");
    如果到下周呢,不可能去手动改程序吧
      

  2.   

    $etime = date("Y-m-d 23:59:59",strtotime("this Sunday"));$sundayunix = echo strtotime($etime);这就搞定了,strtotime()这个函数是根据系统的当前时间取值的.不用你去考虑下个月了.