Dutch PHP Conference 2025 - Call For Papers

SeasLog::getDatetimeFormat

(PECL seaslog >=1.0.0)

SeasLog::getDatetimeFormatGet SeasLog datetime format style

Опис

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

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

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

Приклади

Приклад #1 SeasLog::getDatetimeFormat() example

<?php

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

?>

Поданий вище приклад виведе щось схоже на:

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

Прогляньте також

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top