WC_Tracks_Client::build_timestamp()public staticWC 1.0

Create a timestamp representing milliseconds since 1970-01-01

Method of the class: WC_Tracks_Client{}

No Hooks.

Return

String. A string representing a timestamp.

Usage

$result = WC_Tracks_Client::build_timestamp();

WC_Tracks_Client::build_timestamp() code WC 8.7.0

public static function build_timestamp() {
	$ts = NumberUtil::round( microtime( true ) * 1000 );

	return number_format( $ts, 0, '', '' );
}