getid3_asf::FILETIMEtoUNIXtime

Advertisement

Syntax Syntax

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

Parameters Parameters

$FILETIME

(int) (Required)

$round

(bool) (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.