$databasegetTime()

Get current date/time ISO-8601 string or UNIX timestamp according to database

Available since version 3.0.183.

Usage

// basic usage
$string = $database->getTime();

// usage with all arguments
$string = $database->getTime(bool $getTimestamp = false);

Arguments

NameType(s)Description
$getTimestamp (optional)bool

Get unix timestamp rather than ISO-8601 string? Default:false

Return value

string int


$database methods and properties

API reference based on ProcessWire core version 3.0.251