WC_Log_Handler::format_timeprotected staticWC 1.0

Formats a timestamp for use in log messages.

Method of the class: WC_Log_Handler{}

No Hooks.

Returns

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 10.4.3

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