PHP警告:date()期望参数2很长

时间:2015-08-29 23:32:56

标签: php wordpress date woocommerce

echo '<td' . $times_class . '>' .
     date( 'Y-m-d H:i:s', $time ) .
     '<br />' . $time . '<br />' .
     human_time_diff( $time ) .
     $this->display_past_time( $time ) . '</td>';

那是给我错误的代码。我试着搜索,它说了DateTime左右。但我有0个PHP技能,我只是看到了我的错误文件并找到了字符串。

1 个答案:

答案 0 :(得分:0)

我想我知道可以做些什么。寻找我放置的位置// ********插入此代码*********

SELECT  [Purchased Product], 
        [Purchased Quantity] = sum(CONVERT(INT,[Purchased Quantity]))
        [Purchased Month]    = DATEADD(DAY, 1 - DAY([Purchased Date]), [Purchased Date])
from    StudentPurchasedHistoryTable
WHERE   DATENAME(month, [Purchased Date]) = 'August'
group by [Purchased Product], DATEADD(DAY, 1 - DAY([Purchased Date]), [Purchased Date])

...