COM getUserDateTimeFormat

提供: GeeklogJpWiki

lib-common.php>COM_getUserDateTimeFormat

説明

array   COM_getUserDateTimeFormat  ([string $date = '']) 

ユーザー設定による日付時間フォーマットを返す。 Unixタイムスタンプまたは英語の2つの日付フォーマットをユーザーが好むものに指定する。ユーザーが設定しない場合はconfigファイルの指定のものとなる。

パラメータ

$date
date to format, otherwise we format current date/time

返り値

列[0]はフォーマットされた日付、列[1]はUnixタイムスタンプを返す。

個人用ツール