SeasLog::setDatetimeFormat()
(PECL seaslog >=1.0.0)
设置 SeasLog 日期格式
说明
public static SeasLog::setDatetimeFormat(string $format): bool
设置 SeasLog 日期格式。
Warning本函数还未编写文档,仅有参数列表。
参数
- $format
字符串。比如`Y-m-d H:i:s`或者`Ymd His`。查看函数date()的第一个参数`format`。
返回值
Return TRUE on setted datetime format success, FALSE on failure.
范例
Example #1 SeasLog::setDatetimeFormat() example
<?php var_dump(SeasLog::setDateTimeFormat('Ymd His')); ?>
以上例程的输出类似于:
bool(true)
参见
- SeasLog::getDateTimeFormat() 获取 SeasLog 日期格式