常用函数-get_weekstartend()

0条评论

说明

MySQL日期时间或日期字符串中获取一周的开始或结束时间。

用法

<?php get_weekstartend( $mysqlstring, $start_of_week ) ?>

参数

$mysqlstring

(整数)(必需)日期或MySQL日期时间字段类型

默认值:None

$start_of_week

(整数)(可选)以某个整数作为一周的开始

默认值:''

返回的值

(数组)

关键字“start(开始)”与“end(结束)”

示例

注释

  • 用法:若$start_of_week不是数值,用get_option()检索'start_of_week' 选项

函数历史

始见于0.71版本

源文件

get_weekstartend()位于 wp-includes/functions.php中。

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.