首页 WordPress函数大全 rest_get_date_with_gmt()

rest_get_date_with_gmt()

2020-05-02 / 3998阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

rest_get_date_with_gmt( string $date, bool $is_utc = false )

以MySQL datetime格式将日期解析为本地日期和UTC日期。

描述

See also See also

  • rest_parse_date()

Top ↑

参数

$date

(string)
(Required)
RFC3339 timestamp.

$is_utc

(bool)
(Optional)
Whether the provided date should be interpreted as UTC.

Default value: false

返回

(array|null) Local and UTC datetime strings, in MySQL datetime format (Y-m-d H:i:s), null on failure.

大家谈论
    我的见解