php8.5
Home/ Manual/ seaslog / seaslog/ SeasLog::getDatetimeFormat

SeasLog::getDatetimeFormat

PHP function Edit on GitHub ✎

(PECL seaslog >=1.0.0)

Get SeasLog datetime format style

Description

SeasLog::getDatetimeFormat(): string

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).

Parameters Parameters

Return Values

Get SeasLog datetime format style of seaslog.default_datetime_format. Use the Function SeasLog::setDatetimeFormat will change this value.

Examples

SeasLog::getDatetimeFormat() example

php
<?php

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

?>

The above example will output something similar to:

output
string(11) "Y-m-d H:i:s"
bool(true)
string(7) "Ymd His"

See Also

  • SeasLog::setDatetimeFormat

Source: reference/seaslog/seaslog/getdatetimeformat.xml · from the official PHP manual (php/doc-en)