WC_Log_Handler::format_time()protected staticWC 1.0

Formats a timestamp for use in log messages.

{} It's a 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.

Code of WC_Log_Handler::format_time() WC 6.9.4

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