WC_Log_Handler::format_time()protected staticWC 1.0

Formats a timestamp for use in log messages.

Method of the class: WC_Log_Handler{}

No Hooks.

Return

String. Formatted time for use in log entry.

Usage

$result = WC_Log_Handler::format_time( $timestamp );
$timestamp(int) (required)
Log timestamp.

WC_Log_Handler::format_time() code WC 8.7.0

protected static function format_time( $timestamp ) {
	return gmdate( 'c', $timestamp );
}