Statement on glibc/iconv Vulnerability

SeasLog::setDatetimeFormat

(PECL seaslog >=1.0.0)

SeasLog::setDatetimeFormat设置 SeasLog 日期格式

说明

public static SeasLog::setDatetimeFormat(string $format): bool

设置 SeasLog 日期格式。

警告

本函数还未编写文档,仅有参数列表。

参数

format

字符串。比如 `Y-m-d H:i:s` 或者 `Ymd His`。查看函数 date() 的第一个参数 `format`。

返回值

设置日期时间格式成功时返回 TRUE,失败时返回 FALSE。

示例

示例 #1 SeasLog::setDatetimeFormat() 示例

<?php

var_dump
(SeasLog::setDateTimeFormat('Ymd His'));

?>

以上示例的输出类似于:

bool(true)

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top