getid3_asf::FILETIMEtoUNIXtime

Advertisement

Syntax Syntax

getid3_asf::FILETIMEtoUNIXtime( int $FILETIME, bool $round = true )

Parameters Parameters

$FILETIME

(Required)

$round

(Optional)

Default value: true

Return Return

(float|int)

Source Source

File: wp-includes/ID3/module.audio-video.asf.php

	 *
	 * @return float|int
	 */
	public static function FILETIMEtoUNIXtime($FILETIME, $round=true) {
		// FILETIME is a 64-bit unsigned integer representing
		// the number of 100-nanosecond intervals since January 1, 1601
		// UNIX timestamp is number of seconds since January 1, 1970
		// 116444736000000000 = 10000000 * 60 * 60 * 24 * 365 * 369 + 89 leap days
		if ($round) {
			return intval(round(($FILETIME - 116444736000000000) / 10000000));

Advertisement

Advertisement

Leave a Reply