小白教程
所有教程
关于
Search
108.162.216.98
108.162.216.98
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func date getdate”的源代码
本页内容
上一节:
Func_date_date
下一节:
Func_date_gettimeofday
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:getdate()}}[[Category:PHP Date 参考手册|27]] = PHP getdate() 函数 = [[:Category:PHP Date 参考手册]] 返回当前本地的日期/时间的日期/时间信息: <sample title="" desc="" lang="php" hererun="1"> <?php print_r(getdate()); ?> </sample> == 定义和用法 == getdate() 函数返回某个时间戳或者当前本地的日期/时间的日期/时间信息。 == 语法 == <pre> getdate(timestamp); </pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | timestamp | 可选。规定整数的 Unix 时间戳。默认为当前本地时间(time())。 |} == 技术细节 == {| class="table table-striped table-hover" |width="50%"| 返回值: |width="50%"| 返回带有与时间戳相关的信息的关联数组: * [seconds] - 秒 * [minutes] - 分 * [hours] - 小时 * [mday] - 一个月中的第几天 * [wday] - 一周中的某天 * [mon] - 月 * [year] - 年 * [yday] - 一年中的某天 * [weekday] - 星期几的名称 * [month] - 月份的名称 * [0] - 自 Unix 纪元以来经过的秒数 |- | PHP 版本: | 4+ |} [[:Category:PHP Date 参考手册]]
返回至“
Func date getdate
”。
上一节:
Func_date_date
下一节:
Func_date_gettimeofday