PHP date_timestamp_get() 函数

PHP 教程 · 2019-01-23 23:26:45

实例

返回今天的日期和时间的 Unix 时间戳:

<?php
$date=date_create();
echo date_timestamp_get($date);
?>

定义和用法

date_timestamp_get() 函数返回 Unix 时间戳。

语法

date_timestamp_get(object);

参数 描述
object 必需。规定一个由 date_create() 返回的 DateTime 对象。

技术细节

返回值: 返回代表日期的 Unix 时间戳。
PHP 版本: 5.3+

点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

Algorithms Sequential & Parallel

Algorithms Sequential & Parallel

Russ Miller、Laurence Boxer / Charles River Media / 2005-08-03 / USD 59.95

With multi-core processors replacing traditional processors and the movement to multiprocessor workstations and servers, parallel computing has moved from a specialty area to the core of computer scie......一起来看看 《Algorithms Sequential & Parallel》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

URL 编码/解码
URL 编码/解码

URL 编码/解码