PHP date_create_from_format() 函数
PHP 教程
· 2019-01-23 18:27:11
实例
返回一个根据指定格式进行格式化的新的 DateTime 对象:
<?php
$date=date_create_from_format("j-M-Y","15-Mar-2013");
?>
$date=date_create_from_format("j-M-Y","15-Mar-2013");
?>
定义和用法
date_create_from_format() 函数返回一个根据指定格式进行格式化的新的 DateTime 对象。
语法
date_create_from_format(format,time,timezone);
| 参数 | 描述 |
|---|---|
| format | 必需。规定要使用的格式。format 参数字符串可以使用下列的字符:
|
| time | 必需。规定一个日期/时间字符串。NULL 表示当前的日期/时间。 |
| timezone | 可选。规定 time 的时区。默认为当前时区。 |
技术细节
| 返回值: | 如果成功则返回 DateTime 对象,如果失败则返回 FALSE。 |
|---|---|
| PHP 版本: | 5.3+ |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Getting Started with C++ Audio Programming for Game Development
David Gouveia
Written specifically to help C++ developers add audio to their games from scratch, this book gives a clear introduction to the concepts and practical application of audio programming using the FMOD li......一起来看看 《Getting Started with C++ Audio Programming for Game Development》 这本书的介绍吧!