SeasLog::setDatetimeFormat
PHP function
Edit on GitHub ✎
(PECL seaslog >=1.0.0)
Set SeasLog datetime format style
Description
SeasLog::setDatetimeFormat(string $format): bool
Set SeasLog datetime format style.
Func
Parameters
formatString. Such as `Y-m-d H:i:s` or `Ymd His`. See also first param `format` at
date().
Return Values
Return TRUE on setted datetime format success, FALSE on failure.
Examples
SeasLog::setDatetimeFormat() example
php
<?php
var_dump(SeasLog::setDateTimeFormat('Ymd His'));
?>The above example will output something similar to:
output
bool(true)See Also
SeasLog::getDateTimeFormat