首页 WordPress函数大全 rest_parse_date()

rest_parse_date()

2020-05-02 / 2964阅 / 悠然

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

rest_parse_date( string $date, bool $force_utc = false )

将RFC3339时间解析为Unix时间戳。

描述

参数

$date

(string)
(Required)
RFC3339 timestamp.

$force_utc

(bool)
(Optional)
Whether to force UTC timezone instead of using the timestamp's timezone.

Default value: false

返回

(int) Unix timestamp.

大家谈论
    我的见解