(PECL seaslog >=1.0.0)
SeasLog::getDatetimeFormat — Get SeasLog datetime format style
Get SeasLog datetime format style. Use the Function SeasLog::getDatetimeFormat() will get the value of seaslog.default_datetime_format what configured in php.ini(seaslog.ini).
Questa funzione non contiene parametri.
Get SeasLog datetime format style of seaslog.default_datetime_format. Use the Function SeasLog::setDatetimeFormat() will change this value.
Example #1 SeasLog::getDatetimeFormat() example
<?php
var_dump(SeasLog::getDateTimeFormat());
var_dump(SeasLog::setDateTimeFormat('Ymd His'));
var_dump(SeasLog::getDateTimeFormat());
?>
Il precedente esempio visualizzerĂ qualcosa simile a:
string(11) "Y-m-d H:i:s" bool(true) string(7) "Ymd His"