SeasLog::setDatetimeFormat

(PECL seaslog >=1.0.0)

SeasLog::setDatetimeFormat設(shè)置 SeasLog 日期格式

說明

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

設(shè)置 SeasLog 日期格式。

警告

本函數(shù)還未編寫文檔,僅有參數(shù)列表。

參數(shù)

format

字符串。比如 `Y-m-d H:i:s` 或者 `Ymd His`。查看函數(shù) date() 的第一個參數(shù) `format`。

返回值

Return TRUE on setted datetime format success, FALSE on failure.

范例

示例 #1 SeasLog::setDatetimeFormat() example

<?php

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

?>

以上例程的輸出類似于:

bool(true)

參見