rest_get_date_with_gmt()

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

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

说明(Description)

另见函数 rest_parse_date()


参数(Parameters)

参数类型必填说明
$date(string)必需RFC3339时间戳。
$is_utc(bool)可选提供的日期是否应解释为UTC。

返回(Return)

(array|null)本地和UTC日期时间string,采用MySQL日期时间格式(array|null),失败时为空。

更新版本源码位置使用被使用
4.4.0wp-includes/rest-api.php:98523
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索